Package org.vast.swe
Class DataInputStreamLI
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.vast.swe.DataInputStreamLI
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
,DataInputExt
Equivalent of DataInputStream to read little endian ordered streams (i.e. Lower Significant Byte first)
- Since:
- Nov 28, 2005
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads a 0 terminated ASCII string from input streamboolean
byte
readByte()
char
readChar()
double
float
void
readFully
(byte[] b) void
readFully
(byte[] b, int off, int len) int
readInt()
readLine()
long
readLong()
short
int
long
Reads 4 input bytes and returns a long value in the range 0-2^32.long
Reads 8 input bytes and returns a long value in the range 0-2^63.int
readUTF()
int
skipBytes
(int n) Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.vast.cdm.common.DataInputExt
mark, read, reset
-
Constructor Details
-
DataInputStreamLI
-
-
Method Details
-
readBoolean
- Specified by:
readBoolean
in interfaceDataInput
- Throws:
IOException
-
readByte
- Specified by:
readByte
in interfaceDataInput
- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedByte
in interfaceDataInput
- Throws:
IOException
-
readShort
- Specified by:
readShort
in interfaceDataInput
- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShort
in interfaceDataInput
- Throws:
IOException
-
readChar
- Specified by:
readChar
in interfaceDataInput
- Throws:
IOException
-
readInt
- Specified by:
readInt
in interfaceDataInput
- Throws:
IOException
-
readUnsignedInt
Description copied from interface:DataInputExt
Reads 4 input bytes and returns a long value in the range 0-2^32.- Specified by:
readUnsignedInt
in interfaceDataInputExt
- Returns:
- long value
- Throws:
IOException
-
readLong
- Specified by:
readLong
in interfaceDataInput
- Throws:
IOException
-
readUnsignedLong
Description copied from interface:DataInputExt
Reads 8 input bytes and returns a long value in the range 0-2^63. Values greater than 2^63 won't be read correctly since they are not supported by java.- Specified by:
readUnsignedLong
in interfaceDataInputExt
- Returns:
- long value
- Throws:
IOException
-
readFloat
- Specified by:
readFloat
in interfaceDataInput
- Throws:
IOException
-
readDouble
- Specified by:
readDouble
in interfaceDataInput
- Throws:
IOException
-
readLine
- Specified by:
readLine
in interfaceDataInput
- Throws:
IOException
-
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Throws:
IOException
-
readASCII
Description copied from interface:DataInputExt
Reads a 0 terminated ASCII string from input stream- Specified by:
readASCII
in interfaceDataInputExt
- Returns:
- string value
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
skipBytes
- Specified by:
skipBytes
in interfaceDataInput
- Throws:
IOException
-