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 DataInput
IOException
- Description of the Exceptionpublic void close() throws IOException
IOException
- Description of the Exceptionpublic abstract int readFully(byte[] arr) throws IOException
readFully
in interface DataInput
arr
- Description of the ParameterIOException
- Description of the Exceptionpublic abstract int read(byte[] arr, int offset, int max_len) throws IOException
read
in interface DataInput
arr
- Description of the Parametermax_len
- Description of the ParameterIOException
- Description of the Exceptionpublic abstract byte readByte() throws IOException
readByte
in interface DataInput
IOException
- Description of the Exceptionpublic long readLong() throws IOException
readLong
in interface DataInput
IOException
- Description of the Exceptionpublic int readInt() throws IOException
readInt
in interface DataInput
IOException
- Description of the Exceptionpublic int readShort() throws IOException
readShort
in interface DataInput
IOException
- Description of the Exceptionpublic void seek(long pos) throws IOException
seek
in interface DataInput
pos
- Description of the ParameterIOException
- Description of the Exceptionpublic long length() throws IOException
length
in interface DataInput
IOException
- Description of the Exceptionpublic void skipBytes(long gap) throws IOException
skipBytes
in interface DataInput
gap
- Description of the ParameterIOException
- Description of the Exceptionpublic final long readPack7() throws IOException
readPack7
in interface DataInput
IOException
- Description of the Exceptionpublic final void skipPack7() throws IOException
skipPack7
in interface DataInput
IOException
public final void skipPack7I() throws IOException
skipPack7I
in interface DataInput
IOException
public final int readPack7I() throws IOException
readPack7I
in interface DataInput
IOException
- Description of the Exceptionpublic StringBuilder readString(StringBuilder last) throws IOException
readString
in interface DataInput
last
- Description of the ParameterIOException
- Description of the Exceptionpublic String readString() throws IOException
readString
in interface DataInput
IOException
- Description of the Exceptionpublic boolean readBoolean() throws IOException
readBoolean
in interface DataInput
IOException
public long getMarkPointer()
DataInput
getMarkPointer
in interface DataInput
public void jump() throws IOException
jump
in interface DataInput
IOException
public void mark(long skip)
DataInput
DataInput.jump()
.public abstract int directRead(long from, byte[] arr) throws IOException
DataInput
directRead
in interface DataInput
IOException
Copyright © 2016 Egothor. All Rights Reserved.