public class ByteSource extends Object
Constructor and Description |
---|
ByteSource(byte[] inBytes) |
ByteSource(ByteBuffer inByteBuffer) |
ByteSource(RandomAccessFile inRandomAccessFile) |
Modifier and Type | Method and Description |
---|---|
int |
read() |
int |
read(byte[] inByteDest) |
int |
read(byte[] inByteDest,
int inOffset,
int inLength) |
int |
readInt()
Reads a signed 32-bit integer from this souce.
|
void |
seek(long inPosition) |
public ByteSource(byte[] inBytes)
public ByteSource(ByteBuffer inByteBuffer)
public ByteSource(RandomAccessFile inRandomAccessFile)
public void seek(long inPosition) throws IOException
IOException
public int read() throws IOException
IOException
public int read(byte[] inByteDest, int inOffset, int inLength) throws IOException
IOException
public int read(byte[] inByteDest) throws IOException
IOException
public final int readInt() throws IOException
IOException
jataylor@hairyfatguy.com