public abstract class DataInputStream extends Object implements DataInput
| Constructor and Description |
|---|
DataInputStream() |
| Modifier and Type | Method and Description |
|---|---|
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
|
String |
readString()
Description of the Method
|
StringBuilder |
readString(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() |
public long getFilePointer()
throws IOException
getFilePointer in interface DataInputIOException - Description of the Exceptionpublic void close()
throws IOException
IOException - Description of the Exceptionpublic abstract int readFully(byte[] arr)
throws IOException
readFully in interface DataInputarr - Description of the ParameterIOException - Description of the Exceptionpublic abstract int read(byte[] arr,
int offset,
int max_len)
throws IOException
read in interface DataInputarr - Description of the Parametermax_len - Description of the ParameterIOException - Description of the Exceptionpublic abstract byte readByte()
throws IOException
readByte in interface DataInputIOException - Description of the Exceptionpublic long readLong()
throws IOException
readLong in interface DataInputIOException - Description of the Exceptionpublic int readInt()
throws IOException
readInt in interface DataInputIOException - Description of the Exceptionpublic int readShort()
throws IOException
readShort in interface DataInputIOException - Description of the Exceptionpublic void seek(long pos)
throws IOException
seek in interface DataInputpos - Description of the ParameterIOException - Description of the Exceptionpublic long length()
throws IOException
length in interface DataInputIOException - Description of the Exceptionpublic void skipBytes(long gap)
throws IOException
skipBytes in interface DataInputgap - Description of the ParameterIOException - Description of the Exceptionpublic final long readPack7()
throws IOException
readPack7 in interface DataInputIOException - Description of the Exceptionpublic final void skipPack7()
throws IOException
skipPack7 in interface DataInputIOExceptionpublic final void skipPack7I()
throws IOException
skipPack7I in interface DataInputIOExceptionpublic final int readPack7I()
throws IOException
readPack7I in interface DataInputIOException - Description of the Exceptionpublic StringBuilder readString(StringBuilder last) throws IOException
readString in interface DataInputlast - Description of the ParameterIOException - Description of the Exceptionpublic String readString() throws IOException
readString in interface DataInputIOException - Description of the Exceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic long getMarkPointer()
DataInputgetMarkPointer in interface DataInputpublic void jump()
throws IOException
jump in interface DataInputIOExceptionpublic void mark(long skip)
DataInputDataInput.jump().public abstract int directRead(long from,
byte[] arr)
throws IOException
DataInputdirectRead in interface DataInputIOExceptionCopyright © 2016 Egothor. All Rights Reserved.