public class EndianInputStream extends java.io.DataInputStream implements EndianTypes
BIG_ENDIAN, LITTLE_ENDIAN| Constructor and Description |
|---|
EndianInputStream(java.io.InputStream is)
constructors
|
| Modifier and Type | Method and Description |
|---|---|
char |
readChar(int type)
like RandomAcessFile.readChar except little endian.
|
double |
readDouble(int type)
like RandomAcessFile.readDouble except little endian.
|
float |
readFloat(int type)
like RandomAcessFile.readFloat except little endian.
|
int |
readInt(int type)
like RandomAcessFile.readInt except little endian.
|
long |
readLong(int type)
like RandomAcessFile.readLong except little endian.
|
short |
readShort(int type)
like RandomAcessFile.readShort except little endian.
|
int |
readUnsignedShort(int type)
like RandomAcessFile.readUnsignedShort except little endian.
|
void |
setEndianType(int type) |
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytespublic void setEndianType(int type)
public final short readShort(int type)
throws java.io.IOException
java.io.IOExceptionpublic final int readUnsignedShort(int type)
throws java.io.IOException
java.io.IOExceptionpublic final char readChar(int type)
throws java.io.IOException
java.io.IOExceptionpublic final int readInt(int type)
throws java.io.IOException
java.io.IOExceptionpublic final long readLong(int type)
throws java.io.IOException
java.io.IOExceptionpublic final float readFloat(int type)
throws java.io.IOException
java.io.IOExceptionpublic final double readDouble(int type)
throws java.io.IOException
java.io.IOException