public interface FastStream
| Modifier and Type | Method and Description |
|---|---|
int |
quickRead(byte[] data,
int offset,
int length,
boolean readAll)
This attempts to read using a fast native or direct method.
|
void |
quickWrite(byte[] data,
int offset,
int length)
This attempts to write using a fast native or direct access method.
|
int quickRead(byte[] data,
int offset,
int length,
boolean readAll)
throws IOException
data - The destination for the data.offset - The index in the destination for the data.length - The number of bytes to read.readAll - if this is true then the method will not return until a full length number of
bytes have been read. If the stream ends before this then an IOException is thrown.IOExceptionvoid quickWrite(byte[] data,
int offset,
int length)
throws IOException
data - The source of the data bytes.offset - The index in the source of the data.length - The number of bytes to write.IOException