public class ByteSource extends Object
Constructor and Description |
---|
ByteSource(InputStream in) |
Modifier and Type | Method and Description |
---|---|
int |
getPosition() |
void |
pad32() |
void |
pop() |
void |
push(byte[] bytes) |
byte[] |
read(int length) |
short |
read16() |
int |
read32() |
byte |
read8() |
int |
readU16() |
long |
readU32() |
int |
readU8() |
void |
skip(long length) |
public ByteSource(InputStream in)
public void push(byte[] bytes)
public void pop()
public int getPosition()
public int readU8() throws IOException
IOException
public byte read8() throws IOException
IOException
public int readU16() throws IOException
IOException
public short read16() throws IOException
IOException
public int read32() throws IOException
IOException
public long readU32() throws IOException
IOException
public void pad32() throws IOException
IOException
public byte[] read(int length) throws IOException
IOException
public void skip(long length) throws IOException
IOException
see also the complete user documentation .