Package org.vast.cdm.common
Interface DataInputExt
- All Superinterfaces:
DataInput
- All Known Implementing Classes:
DataInputStreamBI
,DataInputStreamLI
Extension of DataInputStream to support reading unsigned int and long values as well as ASCII (0 terminated) strings from byte stream.
- Since:
- Nov 28, 2005
-
Method Summary
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
-
Method Details
-
read
- Throws:
IOException
-
mark
- Throws:
IOException
-
reset
- Throws:
IOException
-
readUnsignedInt
Reads 4 input bytes and returns a long value in the range 0-2^32.- Returns:
- long value
- Throws:
IOException
-
readUnsignedLong
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.- Returns:
- long value
- Throws:
IOException
-
readASCII
Reads a 0 terminated ASCII string from input stream- Returns:
- string value
- Throws:
IOException
-