net.sf.asyncobjects.asyncscala.nio
Decode bytes as chars
Decode bytes as chars
the charset to use
a decoder stream that uses specified charset
DecoderInput
Decode bytes as chars
Decode bytes as chars
a decoder stream that uses default charset
DecoderInput
Read the entire input and covert it to byte array.
Read the entire input and covert it to byte array. The method closes underlying stream.
a promise for byte array that is the entire stream
Forward the stream sequentially
Forward the stream sequentially
the output stream
the buffer to use (the buffer must be ready for a read operation)
if true, the output is flushed after each operation (the completion of the operation is not waited)
a promise that resolves to amount of forwarded bytes if the operation is successful
Forward the stream sequentially
Forward the stream sequentially
the output stream
the buffer to use
a promise that resolves to amount of forwarded bytes if the operation is successful
The two buffer version of forward operation.
The two buffer version of forward operation. While one buffer is used for reading, other could be used for writing.
the output
the first buffer
the second buffer
Digest stream
Digest stream
the resolver that would be notified when eof is reached
digesting stream builder
Discard the stream sequentially
Discard the stream sequentially
the buffer to use
a promise that resolves to amount of discarded buffer elements if the operation is successful
Array version of read operation
Array version of read operation
the destination array
the promise for amount of bytes read
Array version of read operation
Array version of read operation
the destination array
the start offset
the length of the array
the promise for amount of bytes read
Read buffer fully, throwing exceptions if stream does not have enough data
Read buffer fully, throwing exceptions if stream does not have enough data
the buffer to fill until buffer.remaining() == 0