|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream java.io.FilterInputStream java.io.DataInputStream com.bbn.openmap.dataAccess.shape.input.LittleEndianInputStream
public class LittleEndianInputStream
Provides methods for reading data streams in Little Endian and Big Endian. Adapted from the book, Java IO, Elliotte Rusty Harold, Ch. 7.
Constructor Summary | |
---|---|
LittleEndianInputStream(java.io.InputStream in)
Constructor |
Method Summary | |
---|---|
char |
readLEChar()
Translates a little endian char into a big endian char |
double |
readLEDouble()
Reads a little endian double into a big endian double |
float |
readLEFloat()
Reads a little endian float into a big endian float |
int |
readLEInt()
Translates a little endian int into a big endian int |
long |
readLELong()
Translates a little endian long into a big endian long |
short |
readLEShort()
Translates little endian short to big endian short |
int |
readLEUnsignedShort()
Translates a little endian unsigned short to big endian int |
java.lang.String |
readLEUTF()
|
java.lang.String |
readString(int length)
Constructs a string from the underlying input stream |
Methods inherited from class java.io.DataInputStream |
---|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes |
Methods inherited from class java.io.FilterInputStream |
---|
available, close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LittleEndianInputStream(java.io.InputStream in)
in
- An input stream that this is chained to.Method Detail |
---|
public java.lang.String readString(int length) throws java.io.IOException
length
- The length of bytes to read
java.io.IOException
public short readLEShort() throws java.io.IOException
java.io.IOException
public int readLEUnsignedShort() throws java.io.IOException
java.io.IOException
public char readLEChar() throws java.io.IOException
java.io.IOException
public int readLEInt() throws java.io.IOException
java.io.IOException
public long readLELong() throws java.io.IOException
java.io.IOException
public java.lang.String readLEUTF() throws java.io.IOException
java.io.IOException
public final double readLEDouble() throws java.io.IOException
java.io.IOException
public final float readLEFloat() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |