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, readUTFavailable, close, mark, markSupported, read, read, reset, skippublic int skipBytes(int n)
throws java.io.IOException
skipBytes in interface java.io.DataInputskipBytes in class AbstractDataInputjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void seek(long position)
seek in class AbstractDataInputpublic long getPosition()
getPosition in class AbstractDataInputpublic long getPositionLimit()
getPositionLimit in class AbstractDataInputprotected long length()
public int readInt()
throws java.io.IOException
AbstractDataInputreadInt in interface java.io.DataInputreadInt in class AbstractDataInputjava.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
AbstractDataInputreadLong in interface java.io.DataInputreadLong in class AbstractDataInputjava.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
AbstractDataInputreadUnsignedShort in interface java.io.DataInputreadUnsignedShort in class AbstractDataInputjava.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
AbstractDataInputreadShort in interface java.io.DataInputreadShort in class AbstractDataInputjava.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 © 2018 The Apache Software Foundation