|
GF4J 0.9.4 Beta | ||||||||
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 | +--gameframe.util.BigEndianDataInputStream
Output stream filter that filters all input values to big endian format that is used e.g. by Intel processor equipped computers.
Constructor Summary | |
BigEndianDataInputStream(java.io.InputStream inputStream)
Constructs an big endian input filter. |
Method Summary | |
int |
read()
Reads an integer. |
int |
read(byte[] aByte)
Reads the series of bytes in big endian format. |
int |
read(byte[] aByte,
int offset,
int length)
Reads the series of bytes in big endian format. |
boolean |
readBoolean()
Reads a boolean value. |
byte |
readByte()
Reads a byte. |
char |
readChar()
Reads a Unicode character. |
double |
readDouble()
Reads a double value in big endian format. |
float |
readFloat()
Reads a floating point value in big endian format. |
void |
readFully(byte[] aBytes)
Reads some bytes from an input stream and stores them into the buffer array aBytes. |
void |
readFully(byte[] aBytes,
int offset,
int length)
Reads some bytes from an input stream and stores them into the buffer array aBytes. |
int |
readInt()
Reads a integer value in big endian format. |
java.lang.String |
readLine()
Reads one line of text. |
long |
readLong()
Reads a long value in big endian format. |
short |
readShort()
Reads a short value in big endian format. |
int |
readUnsignedByte()
Reads an unsigned byte. |
int |
readUnsignedShort()
Reads an unsigned short value in big endian format. |
java.lang.String |
readUTF()
Does nothing. |
int |
skipBytes(int numBytes)
Skips the given number of bytes. |
Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BigEndianDataInputStream(java.io.InputStream inputStream)
inputStream
- The input stream to read from.Method Detail |
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
integer
- The integer that is read.public int read(byte[] aByte) throws java.io.IOException
read
in class java.io.FilterInputStream
public int read(byte[] aByte, int offset, int length) throws java.io.IOException
read
in class java.io.FilterInputStream
offset
- The offset into the array.length
- The length of the read array.public void readFully(byte[] aBytes) throws java.io.IOException
readFully
in interface java.io.DataInput
aBytes
- The buffer into which the data is read.public final void readFully(byte[] aBytes, int offset, int length) throws java.io.IOException
readFully
in interface java.io.DataInput
aBytes
- The buffer into which the data is read.offset
- The offset into the array.length
- The number of bytes to read.public final int skipBytes(int numBytes) throws java.io.IOException
skipBytes
in interface java.io.DataInput
numBytes
- The number of bytes that was skipped.public final java.lang.String readLine() throws java.io.IOException
readLine
in interface java.io.DataInput
public final boolean readBoolean() throws java.io.IOException
readBoolean
in interface java.io.DataInput
public final byte readByte() throws java.io.IOException
readByte
in interface java.io.DataInput
byteValue
- The byte that was read.public final int readUnsignedByte() throws java.io.IOException
readUnsignedByte
in interface java.io.DataInput
public final char readChar() throws java.io.IOException
readChar
in interface java.io.DataInput
public final double readDouble() throws java.io.IOException
readDouble
in interface java.io.DataInput
public final float readFloat() throws java.io.IOException
readFloat
in interface java.io.DataInput
public final int readInt() throws java.io.IOException
readInt
in interface java.io.DataInput
public final long readLong() throws java.io.IOException
readLong
in interface java.io.DataInput
public final short readShort() throws java.io.IOException
readShort
in interface java.io.DataInput
public final int readUnsignedShort() throws java.io.IOException
readUnsignedShort
in interface java.io.DataInput
public final java.lang.String readUTF() throws java.io.IOException
readUTF
in interface java.io.DataInput
|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |