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, readUTFpublic int skipBytes(int n)
throws java.io.IOException
java.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionprotected void seekInternal(int position)
seekInternal in class AbstractDataInputprotected int getPosition()
getPosition in class AbstractDataInputpublic 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 © 2015 The Apache Software Foundation