Convenient abstraction to read from a collection of Readers as if it were a single Reader.
Convenient abstraction to read from a collection of Readers as if it were a single Reader.
A collection of Reader[A]
Convenient abstraction to read from a stream (AsyncStream) of Readers as if it were a single Reader.
Convenient abstraction to read from a stream (AsyncStream) of Readers as if it were a single Reader.
An AsyncStream holds a stream of Reader[A]
Construct a Reader
from an exception e
Convenient abstraction to read from a stream (Reader) of Readers as if it were a single Reader.
Convenient abstraction to read from a stream (Reader) of Readers as if it were a single Reader.
A Reader holds a stream of Reader[A]
All operations of the new Reader will be in sync with the outermost Reader. Discarding one Reader will discard the other Reader. When one Reader's onClose resolves, the other Reader's onClose will be resolved immediately with the same value. The subsequent readers are unmanaged, the caller is responsible for discarding those when abandoned.
Allow com.twitter.concurrent.AsyncStream to be consumed as a Reader
Create a new Reader from a given File
.
Create a new Reader from a given File
. The output of a returned reader is chunked by
at most chunkSize
(bytes).
The resources held by the returned Reader are released on reading of EOF and Reader.discard.
Readers.fromFile
for a Java API
Create a new Reader from a given File
.
Create a new Reader from a given File
. The output of a returned reader is chunked by
at most chunkSize
(bytes).
The resources held by the returned Reader are released on reading of EOF and Reader.discard.
Readers.fromFile
for a Java API
Construct a Reader
from a Future
Construct a Reader
from a Future
Multiple outstanding reads are not allowed on this reader
Create a new Reader from a given Iterator
.
Create a new Reader from a given Iterator
.
The resources held by the returned Reader are released on reading of EOF and Reader.discard.
It is not recommended to call it.next()
after creating a Reader
from it.
Doing so will affect the behavior of Reader.read()
because it will skip
the value returned from it.next
.
Create a new Reader from a given Seq
.
Create a new Reader from a given Seq
.
The resources held by the returned Reader are released on reading of EOF and Reader.discard.
Multiple outstanding reads are not allowed on this reader.
Create a new Reader from a given InputStream
.
Create a new Reader from a given InputStream
. The output of a returned reader is
chunked by at most chunkSize
(bytes).
The resources held by the returned Reader are released on reading of EOF and Reader.discard.
Readers.fromStream
for a Java API
Create a new Reader from a given InputStream
.
Create a new Reader from a given InputStream
. The output of a returned reader is
chunked by at most chunkSize
(bytes).
The resources held by the returned Reader are released on reading of EOF and Reader.discard.
Read all items from the Reader r.
Read all items from the Reader r.
A Sequence of items.
Transformation (or lift) from Reader into AsyncStream
.
Construct a Reader
from a value a
Construct a Reader
from a value a
Multiple outstanding reads are not allowed on this reader