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
IOExceptionpublic byte read8()
throws IOException
IOExceptionpublic int readU16()
throws IOException
IOExceptionpublic short read16()
throws IOException
IOExceptionpublic int read32()
throws IOException
IOExceptionpublic long readU32()
throws IOException
IOExceptionpublic void pad32()
throws IOException
IOExceptionpublic byte[] read(int length)
throws IOException
IOExceptionpublic void skip(long length)
throws IOException
IOExceptionsee also the complete user documentation .