|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FilterInputStream
|
+--com.develop.io.LittleEndianInputStream
Replica of
DataInputStream
that uses little endian format. Useful for
dealing with Win32-based formats.
| Fields inherited from class java.io.FilterInputStream |
in |
| Fields inherited from class java.io.InputStream |
SKIP_BUFFER_SIZE, skipBuffer |
| Constructor Summary | |
LittleEndianInputStream(java.io.InputStream in)
Creates a FilterInputStream
and saves its argument, the input stream
in, for later use. |
|
| Method Summary | |
int |
read(byte[] b)
See the general contract of the read
method of DataInput. |
int |
read(byte[] b,
int off,
int len)
See the general contract of the read
method of DataInput. |
boolean |
readBoolean()
See the general contract of the readBoolean
method of DataInput. |
byte |
readByte()
See the general contract of the readByte
method of DataInput. |
char |
readChar()
See the general contract of the readChar
method of DataInput. |
byte[] |
readCurrency()
|
double |
readDouble()
See the general contract of the readDouble
method of DataInput. |
float |
readFloat()
See the general contract of the readFloat
method of DataInput. |
void |
readFully(byte[] b)
See the general contract of the readFully
method of DataInput. |
void |
readFully(byte[] b,
int off,
int len)
See the general contract of the readFully
method of DataInput. |
int |
readInt()
See the general contract of the readInt
method of DataInput. |
java.lang.String |
readLine()
|
long |
readLong()
See the general contract of the readLong
method of DataInput. |
short |
readShort()
See the general contract of the readShort
method of DataInput. |
java.lang.String |
readStringUnicode()
|
java.lang.String |
readUnicodeSz(int sizeHint)
|
int |
readUnsignedByte()
See the general contract of the readUnsignedByte
method of DataInput. |
int |
readUnsignedShort()
See the general contract of the readUnsignedShort
method of DataInput. |
java.lang.String |
readUTF()
|
static java.lang.String |
readUTF(java.io.DataInput in)
|
int |
skipBytes(int n)
See the general contract of the skipBytes
method of DataInput. |
| Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public LittleEndianInputStream(java.io.InputStream in)
FilterInputStream
and saves its argument, the input stream
in, for later use. An internalin - the input stream.| Method Detail |
public final int read(byte[] b)
throws java.io.IOException
read
method of DataInput.
Bytes for this operation are read from the contained input stream.
read in class java.io.FilterInputStreamb - the buffer into which the data is read.-1 if there is no more data because the end
of the stream has been reached.java.io.IOException - if an I/O error occurs.FilterInputStream.in,
InputStream.read(byte[], int, int)
public final int read(byte[] b,
int off,
int len)
throws java.io.IOException
read
method of DataInput.
Bytes for this operation are read from the contained input stream.
read in class java.io.FilterInputStreamb - the buffer into which the data is read.off - the start offset of the data.len - the maximum number of bytes read.-1 if there is no more data because the end
of the stream has been reached.java.io.IOException - if an I/O error occurs.FilterInputStream.in,
InputStream.read(byte[], int, int)
public final void readFully(byte[] b)
throws java.io.IOException
readFully
method of DataInput.
Bytes for this operation are read from the contained input stream.
readFully in interface java.io.DataInputb - the buffer into which the data is read.EOFException - if this input stream reaches the end before
reading all the bytes.java.io.IOException - if an I/O error occurs.FilterInputStream.in
public final void readFully(byte[] b,
int off,
int len)
throws java.io.IOException
readFully
method of DataInput.
Bytes for this operation are read from the contained input stream.
readFully in interface java.io.DataInputb - the buffer into which the data is read.off - the start offset of the data.len - the number of bytes to read.EOFException - if this input stream reaches the end before
reading all the bytes.java.io.IOException - if an I/O error occurs.FilterInputStream.in
public final int skipBytes(int n)
throws java.io.IOException
skipBytes
method of DataInput.
Bytes for this operation are read from the contained input stream.
skipBytes in interface java.io.DataInputn - the number of bytes to be skipped.java.io.IOException - if an I/O error occurs.
public final boolean readBoolean()
throws java.io.IOException
readBoolean
method of DataInput.
Bytes for this operation are read from the contained input stream.
readBoolean in interface java.io.DataInputboolean value read.EOFException - if this input stream has reached the end.java.io.IOException - if an I/O error occurs.FilterInputStream.in
public final byte readByte()
throws java.io.IOException
readByte
method of DataInput.
Bytes for this operation are read from the contained input stream.
readByte in interface java.io.DataInputbyte.EOFException - if this input stream has reached the end.java.io.IOException - if an I/O error occurs.FilterInputStream.in
public final int readUnsignedByte()
throws java.io.IOException
readUnsignedByte
method of DataInput.
Bytes for this operation are read from the contained input stream.
readUnsignedByte in interface java.io.DataInputEOFException - if this input stream has reached the end.java.io.IOException - if an I/O error occurs.FilterInputStream.in
public final short readShort()
throws java.io.IOException
readShort
method of DataInput.
Bytes for this operation are read from the contained input stream.
readShort in interface java.io.DataInputEOFException - if this input stream reaches the end before
reading two bytes.java.io.IOException - if an I/O error occurs.FilterInputStream.in
public final int readUnsignedShort()
throws java.io.IOException
readUnsignedShort
method of DataInput.
Bytes for this operation are read from the contained input stream.
readUnsignedShort in interface java.io.DataInputEOFException - if this input stream reaches the end before
reading two bytes.java.io.IOException - if an I/O error occurs.FilterInputStream.in
public final char readChar()
throws java.io.IOException
readChar
method of DataInput.
Bytes for this operation are read from the contained input stream.
readChar in interface java.io.DataInputEOFException - if this input stream reaches the end before
reading two bytes.java.io.IOException - if an I/O error occurs.FilterInputStream.in
public final int readInt()
throws java.io.IOException
readInt
method of DataInput.
Bytes for this operation are read from the contained input stream.
readInt in interface java.io.DataInputint.EOFException - if this input stream reaches the end before
reading four bytes.java.io.IOException - if an I/O error occurs.FilterInputStream.in
public final long readLong()
throws java.io.IOException
readLong
method of DataInput.
Bytes for this operation are read from the contained input stream.
readLong in interface java.io.DataInputlong.EOFException - if this input stream reaches the end before
reading eight bytes.java.io.IOException - if an I/O error occurs.FilterInputStream.in
public final java.lang.String readUnicodeSz(int sizeHint)
throws java.io.IOException
public final float readFloat()
throws java.io.IOException
readFloat
method of DataInput.
Bytes for this operation are read from the contained input stream.
readFloat in interface java.io.DataInputfloat.EOFException - if this input stream reaches the end before
reading four bytes.java.io.IOException - if an I/O error occurs.DataInputStream.readInt(),
java.lang.Float#intBitsToFloat(int)
public final double readDouble()
throws java.io.IOException
readDouble
method of DataInput.
Bytes for this operation are read from the contained input stream.
readDouble in interface java.io.DataInputdouble.EOFException - if this input stream reaches the end before
reading eight bytes.java.io.IOException - if an I/O error occurs.DataInputStream.readLong(),
java.lang.Double#longBitsToDouble(long)
public final java.lang.String readLine()
throws java.io.IOException
readLine in interface java.io.DataInput
public final java.lang.String readUTF()
throws java.io.IOException
readUTF in interface java.io.DataInput
public static final java.lang.String readUTF(java.io.DataInput in)
throws java.io.IOException
public java.lang.String readStringUnicode()
throws java.io.IOException
public byte[] readCurrency()
throws java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||