Package htsjdk.tribble.util
Class LittleEndianInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
htsjdk.tribble.util.LittleEndianInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Input stream with methods to convert byte arrays to numeric values using "little endian" order.
Note: This class is not thread safe => instances should not be shared amongst threads
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
-
Method Summary
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
-
Constructor Details
-
LittleEndianInputStream
-
-
Method Details
-
readByte
- Returns:
- the next byte of this input stream, interpreted as an unsigned 8-bit number
- Throws:
IOException
-
readShort
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readDouble
- Throws:
IOException
-
readFloat
- Throws:
IOException
-
readString
Read a null terminated byte array and return result as a string- Returns:
- Throws:
IOException
-