public interface DataInput
| Modifier and Type | Method and Description |
|---|---|
int |
directRead(long from,
byte[] arr)
Read from the offset position without buffering.
|
long |
getFilePointer()
Gets the filePointer attribute of the DataInput object
|
long |
getMarkPointer()
Returns the offset of the mark if any, else returns 0.
|
void |
jump() |
long |
length()
Description of the Method
|
void |
mark(long skip)
Denote position at getFilePointer+skip for
jump(). |
int |
read(byte[] arr,
int offset,
int max_len) |
boolean |
readBoolean() |
byte |
readByte()
Description of the Method
|
int |
readFully(byte[] arr) |
int |
readInt()
Description of the Method
|
long |
readLong()
Description of the Method
|
long |
readPack7()
Read a next long stored in a pack-7bit coding.
|
int |
readPack7I()
Read a next integer stored in a pack-7bit coding.
|
int |
readShort()
Description of the Method
|
String |
readString()
Description of the Method
|
StringBuilder |
readString(StringBuilder in)
Read a next word which is saved in the prefix coding.
|
void |
seek(long pos)
Description of the Method
|
void |
skipBytes(long gap)
Description of the Method
|
void |
skipPack7() |
void |
skipPack7I() |
int readFully(byte[] arr)
throws IOException
arr - Description of the ParameterIOException - Description of the Exceptionint read(byte[] arr,
int offset,
int max_len)
throws IOException
arr - Description of the Parametermax_len - Description of the ParameterIOException - Description of the Exceptionint directRead(long from,
byte[] arr)
throws IOException
IOExceptionbyte readByte()
throws IOException
IOException - Description of the Exceptionlong readLong()
throws IOException
IOException - Description of the Exceptionint readInt()
throws IOException
IOException - Description of the Exceptionint readShort()
throws IOException
IOException - Description of the Exceptionvoid seek(long pos) throws IOException
pos - Description of the ParameterIOException - Description of the Exceptionlong getFilePointer()
throws IOException
IOException - Description of the Exceptionvoid skipBytes(long gap)
throws IOException
gap - Description of the ParameterIOException - Description of the Exceptionlong length()
throws IOException
IOException - Description of the Exceptionvoid mark(long skip)
jump().long getMarkPointer()
void jump() throws IOException
IOExceptionlong readPack7()
throws IOException
IOException - if an I/O error occursStringBuilder readString(StringBuilder in) throws IOException
in - Description of the ParameterIOException - Description of the ExceptionString readString() throws IOException
IOException - Description of the Exceptionint readPack7I()
throws IOException
IOException - Description of the Exceptionvoid skipPack7I()
throws IOException
IOExceptionvoid skipPack7()
throws IOException
IOExceptionboolean readBoolean()
throws IOException
IOExceptionCopyright © 2016 Egothor. All Rights Reserved.