Package org.broad.tribble.util
Class LittleEndianInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.broad.tribble.util.LittleEndianInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class LittleEndianInputStream extends java.io.FilterInputStream
-
-
Constructor Summary
Constructors Constructor Description LittleEndianInputStream(java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanreadBoolean()bytereadByte()charreadChar()doublereadDouble()floatreadFloat()intreadInt()longreadLong()shortreadShort()java.lang.StringreadString()Read a null terminated byte array and return result as a stringintreadUnsignedByte()intreadUnsignedShort()-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
-
-
-
-
Method Detail
-
readBoolean
public boolean readBoolean() throws java.io.IOException- Throws:
java.io.IOException
-
readByte
public byte readByte() throws java.io.IOException- Throws:
java.io.IOException
-
readUnsignedByte
public int readUnsignedByte() throws java.io.IOException- Throws:
java.io.IOException
-
readShort
public short readShort() throws java.io.IOException- Throws:
java.io.IOException
-
readUnsignedShort
public int readUnsignedShort() throws java.io.IOException- Throws:
java.io.IOException
-
readChar
public char readChar() throws java.io.IOException- Throws:
java.io.IOException
-
readInt
public int readInt() throws java.io.IOException- Throws:
java.io.IOException
-
readLong
public long readLong() throws java.io.IOException- Throws:
java.io.IOException
-
readDouble
public final double readDouble() throws java.io.IOException- Throws:
java.io.IOException
-
readFloat
public final float readFloat() throws java.io.IOException- Throws:
java.io.IOException
-
readString
public java.lang.String readString() throws java.io.IOExceptionRead a null terminated byte array and return result as a string- Returns:
- Throws:
java.io.IOException
-
-