- toByteArray
Reads all bytes from an input stream into a byte array. The given expected size
is used to create an
- copy
Copies all bytes from the readable channel to the writable channel. Does not
close or flush either c
- newDataOutput
Returns a new ByteArrayDataOutput instance which writes to the given
ByteArrayOutputStream. The give
- readFully
Attempts to read len bytes from the stream into the given array starting at off,
with the same behav
- nullOutputStream
Returns an OutputStream that simply discards written bytes.
- newDataInput
Returns a new ByteArrayDataInput instance to read from the bytes array, starting
at the given positi
- limit
Wraps a InputStream, limiting the number of bytes which can be read.
- 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.
- skipFully
Discards n bytes of data from the input stream. This method will block until the
full amount has bee
- newInputStreamSupplier
Returns a factory that will supply instances of ByteArrayInputStream that read
from the given byte a
- join
Varargs form of #join(Iterable).