- limit
Wraps a InputStream, limiting the number of bytes which can be read.
- copy
Copies all bytes from the readable channel to the writable channel. Does not
close or flush either c
- newDataInput
Returns a new ByteArrayDataInput instance to read from the bytes array, starting
at the given positi
- newDataOutput
Returns a new ByteArrayDataOutput instance which writes to the given
ByteArrayOutputStream. The give
- toByteArray
Reads all bytes from an input stream into a byte array. The given expected size
is used to create an
- createBuffer
Creates a new byte array for buffering reads or writes.
- exhaust
Reads and discards data from the given InputStream until the end of the stream
is reached. Returns t
- read
Reads some bytes from an input stream and stores them into the buffer array b.
This method blocks un
- readBytes
Process the bytes of the given input stream using the given processor.
- readFully
Attempts to read len bytes from the stream into the given array starting at off,
with the same behav
- skipUpTo
Discards up to n bytes of data from the input stream. This method will block
until either the full a