public class EncodedDataInputStream extends AbstractDataInput implements java.io.DataInput
Constructor and Description |
---|
EncodedDataInputStream(java.io.DataInput input) |
Modifier and Type | Method and Description |
---|---|
long |
getPosition() |
long |
getPositionLimit() |
protected long |
length() |
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.
|
void |
seek(long position) |
int |
skipBytes(int n) |
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readLine, readUnsignedByte, readUTF
available, close, mark, markSupported, read, read, reset, skip
public int skipBytes(int n) throws java.io.IOException
skipBytes
in interface java.io.DataInput
skipBytes
in class AbstractDataInput
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void seek(long position)
seek
in class AbstractDataInput
public long getPosition()
getPosition
in class AbstractDataInput
public long getPositionLimit()
getPositionLimit
in class AbstractDataInput
protected long length()
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 © 2020 The Apache Software Foundation