|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.io.DataInputStream
public abstract class DataInputStream
This class is part of the Egothor Project
Constructor Summary | |
---|---|
DataInputStream()
|
Method Summary | |
---|---|
void |
close()
Description of the Method |
abstract int |
directRead(long from,
byte[] arr)
Read from the offset position without buffering. |
long |
getFilePointer()
Gets the filePointer attribute of the DataInputStream 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 DataInput.jump() . |
abstract int |
read(byte[] arr,
int offset,
int max_len)
|
boolean |
readBoolean()
|
abstract byte |
readByte()
Description of the Method |
abstract int |
readFully(byte[] arr)
Description of the Method |
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 last)
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataInputStream()
Method Detail |
---|
public long getFilePointer() throws java.io.IOException
getFilePointer
in interface DataInput
java.io.IOException
- Description of the Exceptionpublic void close() throws java.io.IOException
java.io.IOException
- Description of the Exceptionpublic abstract int readFully(byte[] arr) throws java.io.IOException
readFully
in interface DataInput
arr
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic abstract int read(byte[] arr, int offset, int max_len) throws java.io.IOException
read
in interface DataInput
arr
- Description of the Parametermax_len
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic abstract byte readByte() throws java.io.IOException
readByte
in interface DataInput
java.io.IOException
- Description of the Exceptionpublic long readLong() throws java.io.IOException
readLong
in interface DataInput
java.io.IOException
- Description of the Exceptionpublic int readInt() throws java.io.IOException
readInt
in interface DataInput
java.io.IOException
- Description of the Exceptionpublic int readShort() throws java.io.IOException
readShort
in interface DataInput
java.io.IOException
- Description of the Exceptionpublic void seek(long pos) throws java.io.IOException
seek
in interface DataInput
pos
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic long length() throws java.io.IOException
length
in interface DataInput
java.io.IOException
- Description of the Exceptionpublic void skipBytes(long gap) throws java.io.IOException
skipBytes
in interface DataInput
gap
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic final long readPack7() throws java.io.IOException
readPack7
in interface DataInput
java.io.IOException
- Description of the Exceptionpublic final void skipPack7() throws java.io.IOException
skipPack7
in interface DataInput
java.io.IOException
public final void skipPack7I() throws java.io.IOException
skipPack7I
in interface DataInput
java.io.IOException
public final int readPack7I() throws java.io.IOException
readPack7I
in interface DataInput
java.io.IOException
- Description of the Exceptionpublic java.lang.StringBuilder readString(java.lang.StringBuilder last) throws java.io.IOException
readString
in interface DataInput
last
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic java.lang.String readString() throws java.io.IOException
readString
in interface DataInput
java.io.IOException
- Description of the Exceptionpublic boolean readBoolean() throws java.io.IOException
readBoolean
in interface DataInput
java.io.IOException
public long getMarkPointer()
DataInput
getMarkPointer
in interface DataInput
public void jump() throws java.io.IOException
jump
in interface DataInput
java.io.IOException
public void mark(long skip)
DataInput
DataInput.jump()
.
mark
in interface DataInput
public abstract int directRead(long from, byte[] arr) throws java.io.IOException
DataInput
directRead
in interface DataInput
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |