Provides support for working with files.
Reads all bytes from the specified InputStream
with a buffer size of chunkSize
.
Reads all bytes from the specified InputStream
with a buffer size of chunkSize
.
Set closeAfterUse
to false if the InputStream
should not be closed after use.
Blocks the current thread.
Reads all bytes from the specified InputStream
with a buffer size of chunkSize
.
Reads all bytes from the specified InputStream
with a buffer size of chunkSize
.
Set closeAfterUse
to false if the InputStream
should not be closed after use.
This will block a thread in the ExecutionContext
, so the size of any associated
threadpool should be sized appropriately.
Stream of bytes read from standard input.
Stream of bytes read asynchronously from standard input.
Sink of bytes that writes emitted values to standard output.
Sink of bytes that writes emitted values to standard output asynchronously.
Provides support for TCP networking.
Pipe that converts a stream of bytes to a stream that will emits a single java.io.InputStream
,
that is closed whenever the resulting stream terminates.
Pipe that converts a stream of bytes to a stream that will emits a single java.io.InputStream
,
that is closed whenever the resulting stream terminates.
If the close
of resulting input stream is invoked manually, then this will await until the
original stream completely terminates.
Because all InputStream
methods block (including close
), the resulting InputStream
should be consumed on a different thread pool than the one that is backing the ExecutionContext
.
Note that the implementation is not thread safe -- only one thread is allowed at any time
to operate on the resulting java.io.InputStream
.
Provides support for UDP networking.
Reads all bytes from the specified InputStream
with a buffer size of chunkSize
.
Reads all bytes from the specified InputStream
with a buffer size of chunkSize
.
Set closeAfterUse
to false if the InputStream
should not be closed after use.
Recycles an underlying input buffer for performance. It is safe to call
this as long as whatever consumes this Stream
does not store the Chunk
returned or pipe it to a combinator that does (e.g., buffer
). Use
readInputStream
for a safe version.
Blocks the current thread.
Reads all bytes from the specified InputStream
with a buffer size of chunkSize
.
Reads all bytes from the specified InputStream
with a buffer size of chunkSize
.
Set closeAfterUse
to false if the InputStream
should not be closed after use.
This will block a thread in the ExecutionContext
, so the size of any associated
threadpool should be sized appropriately.
Recycles an underlying input buffer for performance. It is safe to call
this as long as whatever consumes this Stream
does not store the Chunk
returned or pipe it to a combinator that does (e.g. buffer
). Use
readInputStream
for a safe version.
Writes all bytes to the specified OutputStream
.
Writes all bytes to the specified OutputStream
. Set closeAfterUse
to false if
the OutputStream
should not be closed after use.
Blocks the current thread.
Writes all bytes to the specified OutputStream
.
Writes all bytes to the specified OutputStream
. Set closeAfterUse
to false if
the OutputStream
should not be closed after use.
This will block a thread in the ExecutorService
, so the size of any associated
threadpool should be sized appropriately.
Provides various ways to work with streams that perform IO.