public interface ByteProvider
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(int totalNumBytesToRead)
Getter for the raw bytes that this ByteProvider encapsulates
|
void |
skipBytes(long totalNumBytesToSkip)
A method that lets the caller skip bytes in the encapsulated data
|
byte[] getBytes(int totalNumBytesToRead) throws java.io.IOException
totalNumBytesToRead
- the total num bytes to readjava.io.IOException
- the iO exceptionvoid skipBytes(long totalNumBytesToSkip) throws java.io.IOException
totalNumBytesToSkip
- the total num bytes to skip from the current positionjava.io.IOException
- the iO exception