net.sf.asyncobjects.asyncscala.nio
Read the entire input and covert it to string.
Read the entire input and covert it to string. The method closes underlying stream.
a promise for string 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
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
Read stream as lines separated by Unicode new line characters.
Read stream as lines separated by Unicode new line characters. <u>
Stream automatically closes underlying input on eof or error.
stream of lines
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