public class DataInputStreamBI extends DataInputStream implements DataInputExt
Extension of DataInputStream to support reading unsigned int and long values as well as ASCII (0 terminated) strings from byte stream. This is for big endian order (i.e. Most Significant Byte first)
in
Constructor and Description |
---|
DataInputStreamBI(InputStream is) |
Modifier and Type | Method and Description |
---|---|
String |
readASCII()
Reads a 0 terminated ASCII string from input stream
|
long |
readUnsignedInt()
Reads 4 input bytes and returns a long value in the range 0-2^32.
|
long |
readUnsignedLong()
Reads 8 input bytes and returns a long value in the range 0-2^63.
|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
available, close, mark, markSupported, read, reset, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mark, read, reset
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
public DataInputStreamBI(InputStream is)
public long readUnsignedInt() throws IOException
DataInputExt
readUnsignedInt
in interface DataInputExt
IOException
public long readUnsignedLong() throws IOException
DataInputExt
readUnsignedLong
in interface DataInputExt
IOException
public String readASCII() throws IOException
DataInputExt
readASCII
in interface DataInputExt
IOException
Copyright © 2016 Sensia Software LLC. All rights reserved.