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
IOExceptionpublic int read() throws IOException
IOExceptionpublic int read(byte[] inByteDest, int inOffset, int inLength) throws IOException
IOExceptionpublic int read(byte[] inByteDest) throws IOException
IOExceptionpublic final int readInt() throws IOException
IOException
jataylor@hairyfatguy.com