|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataInput
This class is part of the Egothor Project
Method Summary | |
---|---|
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 |
java.lang.String |
readString()
Description of the Method |
java.lang.StringBuilder |
readString(java.lang.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()
|
Method Detail |
---|
int readFully(byte[] arr) throws java.io.IOException
arr
- Description of the Parameter
java.io.IOException
- Description of the Exceptionint read(byte[] arr, int offset, int max_len) throws java.io.IOException
arr
- Description of the Parametermax_len
- Description of the Parameter
java.io.IOException
- Description of the Exceptionint directRead(long from, byte[] arr) throws java.io.IOException
java.io.IOException
byte readByte() throws java.io.IOException
java.io.IOException
- Description of the Exceptionlong readLong() throws java.io.IOException
java.io.IOException
- Description of the Exceptionint readInt() throws java.io.IOException
java.io.IOException
- Description of the Exceptionint readShort() throws java.io.IOException
java.io.IOException
- Description of the Exceptionvoid seek(long pos) throws java.io.IOException
pos
- Description of the Parameter
java.io.IOException
- Description of the Exceptionlong getFilePointer() throws java.io.IOException
java.io.IOException
- Description of the Exceptionvoid skipBytes(long gap) throws java.io.IOException
gap
- Description of the Parameter
java.io.IOException
- Description of the Exceptionlong length() throws java.io.IOException
java.io.IOException
- Description of the Exceptionvoid mark(long skip)
jump()
.
long getMarkPointer()
void jump() throws java.io.IOException
java.io.IOException
long readPack7() throws java.io.IOException
java.io.IOException
- if an I/O error occursjava.lang.StringBuilder readString(java.lang.StringBuilder in) throws java.io.IOException
in
- Description of the Parameter
java.io.IOException
- Description of the Exceptionjava.lang.String readString() throws java.io.IOException
java.io.IOException
- Description of the Exceptionint readPack7I() throws java.io.IOException
java.io.IOException
- Description of the Exceptionvoid skipPack7I() throws java.io.IOException
java.io.IOException
void skipPack7() throws java.io.IOException
java.io.IOException
boolean readBoolean() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |