public class EncodedDataInputStream extends AbstractDataInput
Constructor and Description |
---|
EncodedDataInputStream(java.io.DataInput input) |
Modifier and Type | Method and Description |
---|---|
protected int |
getPosition() |
int |
read() |
int |
readInt()
Reads a 32-bit integer from the current position in this file.
|
long |
readLong()
Reads a 64-bit long from the current position in this file.
|
short |
readShort()
Reads a 16-bit short from the current position in this file.
|
int |
readUnsignedShort()
Reads an unsigned 16-bit short from the current position in this file and
returns it as an integer.
|
protected void |
seekInternal(int position) |
int |
skipBytes(int n) |
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readLine, readUnsignedByte, readUTF
public int skipBytes(int n) throws java.io.IOException
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
protected void seekInternal(int position)
seekInternal
in class AbstractDataInput
protected int getPosition()
getPosition
in class AbstractDataInput
public int readInt() throws java.io.IOException
AbstractDataInput
readInt
in interface java.io.DataInput
readInt
in class AbstractDataInput
java.io.EOFException
- if the end of this file is detected.java.io.IOException
- if this file is closed or another I/O error occurs.public long readLong() throws java.io.IOException
AbstractDataInput
readLong
in interface java.io.DataInput
readLong
in class AbstractDataInput
java.io.EOFException
- if the end of this file is detected.java.io.IOException
- if this file is closed or another I/O error occurs.public int readUnsignedShort() throws java.io.IOException
AbstractDataInput
readUnsignedShort
in interface java.io.DataInput
readUnsignedShort
in class AbstractDataInput
java.io.EOFException
- if the end of this file is detected.java.io.IOException
- if this file is closed or another I/O error occurs.public short readShort() throws java.io.IOException
AbstractDataInput
readShort
in interface java.io.DataInput
readShort
in class AbstractDataInput
java.io.EOFException
- if the end of this file is detected.java.io.IOException
- if this file is closed or another I/O error occurs.Copyright © 2014 The Apache Software Foundation