|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
com.develop.io.LittleEndianInputStream
Replica of DataInputStream
that uses little
endian format. Useful for dealing with Win32-based formats.
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LittleEndianInputStream(java.io.InputStream in)
FilterInputStream
and saves its argument, the
input stream in
, for later use. An internal
in
- 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.
b
- 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.java.io.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.
b
- 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.java.io.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.DataInput
b
- the buffer into which the data is read.
java.io.EOFException
- if this input stream reaches the end before reading all
the bytes.
java.io.IOException
- if an I/O error occurs.java.io.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.DataInput
b
- the buffer into which the data is read.off
- the start offset of the data.len
- the number of bytes to read.
java.io.EOFException
- if this input stream reaches the end before reading all
the bytes.
java.io.IOException
- if an I/O error occurs.java.io.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.DataInput
n
- 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.DataInput
boolean
value read.
java.io.EOFException
- if this input stream has reached the end.
java.io.IOException
- if an I/O error occurs.java.io.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.DataInput
byte
.
java.io.EOFException
- if this input stream has reached the end.
java.io.IOException
- if an I/O error occurs.java.io.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.DataInput
java.io.EOFException
- if this input stream has reached the end.
java.io.IOException
- if an I/O error occurs.java.io.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.DataInput
java.io.EOFException
- if this input stream reaches the end before reading two
bytes.
java.io.IOException
- if an I/O error occurs.java.io.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.DataInput
java.io.EOFException
- if this input stream reaches the end before reading two
bytes.
java.io.IOException
- if an I/O error occurs.java.io.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.DataInput
java.io.EOFException
- if this input stream reaches the end before reading two
bytes.
java.io.IOException
- if an I/O error occurs.java.io.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.DataInput
int
.
java.io.EOFException
- if this input stream reaches the end before reading four
bytes.
java.io.IOException
- if an I/O error occurs.java.io.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.DataInput
long
.
java.io.EOFException
- if this input stream reaches the end before reading eight
bytes.
java.io.IOException
- if an I/O error occurs.java.io.FilterInputStream#in
public final java.lang.String readUnicodeSz(int sizeHint) throws java.io.IOException
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.DataInput
float
.
java.io.EOFException
- if this input stream reaches the end before reading four
bytes.
java.io.IOException
- if an I/O error occurs.DataInputStream.readInt()
,
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.DataInput
double
.
java.io.EOFException
- if this input stream reaches the end before reading eight
bytes.
java.io.IOException
- if an I/O error occurs.DataInputStream.readLong()
,
Double.longBitsToDouble(long)
public final java.lang.String readLine() throws java.io.IOException
readLine
in interface java.io.DataInput
java.io.IOException
public final java.lang.String readUTF() throws java.io.IOException
readUTF
in interface java.io.DataInput
java.io.IOException
public static final java.lang.String readUTF(java.io.DataInput in) throws java.io.IOException
in
-
java.io.IOException
public final java.lang.String readStringUnicode() throws java.io.IOException
java.io.IOException
public final byte[] readCurrency() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |