Class BinaryReader
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- in.dragonbra.javasteam.util.stream.BinaryReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class BinaryReader extends java.io.FilterInputStreamBasically DataInputStream, but the bytes are parsed in reverse order
-
-
Constructor Summary
Constructors Constructor Description BinaryReader(java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPosition()booleanreadBoolean()bytereadByte()byte[]readBytes(int len)charreadChar()doublereadDouble()floatreadFloat()intreadInt()longreadLong()java.lang.StringreadNullTermString()java.lang.StringreadNullTermString(java.nio.charset.Charset charset)shortreadShort()-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
-
-
-
-
Method Detail
-
readInt
public int readInt() throws java.io.IOException- Throws:
java.io.IOException
-
readBytes
public byte[] readBytes(int len) throws java.io.IOException- Throws:
java.io.IOException
-
readByte
public byte readByte() throws java.io.IOException- Throws:
java.io.IOException
-
readShort
public short readShort() throws java.io.IOException- Throws:
java.io.IOException
-
readLong
public long readLong() throws java.io.IOException- Throws:
java.io.IOException
-
readChar
public char readChar() throws java.io.IOException- Throws:
java.io.IOException
-
readFloat
public float readFloat() throws java.io.IOException- Throws:
java.io.IOException
-
readDouble
public double readDouble() throws java.io.IOException- Throws:
java.io.IOException
-
readBoolean
public boolean readBoolean() throws java.io.IOException- Throws:
java.io.IOException
-
readNullTermString
public java.lang.String readNullTermString() throws java.io.IOException- Throws:
java.io.IOException
-
readNullTermString
public java.lang.String readNullTermString(java.nio.charset.Charset charset) throws java.io.IOException- Throws:
java.io.IOException
-
getPosition
public int getPosition()
-
-