a closeable chunk iterator generator.
a closeable chunk iterator generator. whenever the function is called, it produces an iterator for the same underlying resource. this is necessary for the enumerators to be reusable, ie, produce the same stream of elements when used with two iteratees, and not produce an empty stream when used a second time. note, however, that the iterators returned by this generating function do not have to produce the exact same results. allowance is made for the fact that the underlying resource may be a changeable resource. for instance, we could be iterating over the contents of a file, and some other process might modify the file in the meantime.
at this point, Chunkerator serves as our common interchange format for publishers - we will try to get to and from conversions for this type, from each stream type we handle. we can then convert between any two publisher types using this one as a mediator.
a closeable iterator of chunks.
a closeable iterator of chunks. has method close: Unit
, along with the standard Iterator
methods, so that enumerator can be closed early when the iteratee is complete.
a closeable iterator.
a closeable iterator. has method close: Unit
, along with the standard Iterator
methods, so
that enumerator can be closed early when the iteratee is complete.
adapts streams from one streaming library into another streaming library
adapts streams from one streaming library into another streaming library
the type of stream to adapt from
the type of stream to adapt into
contains factory methods for producing chunkerators
contains factory methods for producing closeable chunk iters
adapts a stream of elements from one streaming library into a stream from another streaming library
adapts a stream of elements from one streaming library into a stream from another streaming library
the type of stream to adapt from
the type of stream to adapt into
the type of the elements of the stream
the stream to adapt
the adapted stream
chains two stream adapters together to create a new one.
chains two stream adapters together to create a new one. the intermediary in the chain is
hardcoded to Chunkerator
.
the idea being, every streaming library has adapters into and out of Chunkerator
, and then we
can adapt between two arbitrary streaming libraries.
contains stream adapters for iteratee.io
enumerators
a toolkit for adapting streams from one streaming library into another streaming library