Compose this Enumerator with an Enumeratee.
Compose this Enumerator with an Enumeratee. Alias for through
Alias for interleave
Alias for interleave
Alias for andThen
Alias for andThen
Sequentially combine this Enumerator with another Enumerator.
Sequentially combine this Enumerator with another Enumerator. The resulting enumerator will produce both input streams, this one first, then the other. Note: the current implementation will break if the first enumerator produces an Input.EOF.
Attaches this Enumerator to an play.api.libs.iteratee.Iteratee, driving the Iteratee to (asynchronously) consume the input.
Attaches this Enumerator to an play.api.libs.iteratee.Iteratee, driving the Iteratee to (asynchronously) consume the input. The Iteratee may enter its play.api.libs.iteratee.Done or play.api.libs.iteratee.Error state, or it may be left in a play.api.libs.iteratee.Cont state (allowing it to consume more input after that sent by the enumerator).
If the Iteratee reaches a play.api.libs.iteratee.Done state, it will contain a computed result and the remaining (unconsumed) input.
flatmaps the given function f onto parent Enumerator
flatmaps the given function f onto parent Enumerator
function to map
The context to execute the supplied function with. The context is prepared on the calling thread before being used.
enumerator
maps the given function f onto parent Enumerator
maps the given function f onto parent Enumerator
function to map
The context to execute the supplied function with. The context is prepared on the calling thread before being used.
enumerator
Creates an Enumerator, based on this one, with each input transformed by the given function.
Creates an Enumerator, based on this one, with each input transformed by the given function.
Used to transform the input.
The context to execute the supplied function with. The context is prepared on the calling thread before being used.
Creates an Enumerator which calls the given callback when a passed in iteratee has either entered the done state, or if an error is returned.
Creates an Enumerator which calls the given callback when a passed in iteratee has either entered the done state, or if an error is returned.
This is equivalent to a finally call, and can be used to clean up any resources used by this enumerator. Note that if the callback throws an exception, then the future returned by the enumerator will be completed with that exception.
The callback to call
The context to execute the supplied function with. The context is prepared on the calling thread before being used.
Alias for |>>>
; drives the iteratee to consume the enumerator's
input, adding an Input.EOF at the end of the input.
Alias for |>>>
; drives the iteratee to consume the enumerator's
input, adding an Input.EOF at the end of the input. Returns either a result
or an exception.
Compose this Enumerator with an Enumeratee
Compose this Enumerator with an Enumeratee
Alias for apply
, produces input driving the given play.api.libs.iteratee.Iteratee
to consume it.
Alias for apply
, produces input driving the given play.api.libs.iteratee.Iteratee
to consume it.
Attaches this Enumerator to an play.api.libs.iteratee.Iteratee, driving the Iteratee to (asynchronously) consume the enumerator's input.
Attaches this Enumerator to an play.api.libs.iteratee.Iteratee, driving the
Iteratee to (asynchronously) consume the enumerator's input. If the Iteratee does not
reach a play.api.libs.iteratee.Done or play.api.libs.iteratee.Error
state when the Enumerator finishes, this method forces one of those states by
feeding Input.EOF
to the Iteratee.
If the iteratee is left in a play.api.libs.iteratee.Done state then the promise is completed with the iteratee's result. If the iteratee is left in an play.api.libs.iteratee.Error state, then the promise is completed with a java.lang.RuntimeException containing the iteratee's error message.
Unlike apply
or |>>
, this method does not allow you to access the
unconsumed input.
A variation on apply
or |>>
which returns the state of the iteratee rather
than the iteratee itself.
A variation on apply
or |>>
which returns the state of the iteratee rather
than the iteratee itself. This can make your code a little shorter.
Adapts a Publisher to an Enumerator.
When an Iteratee is applied to the Enumerator, we adapt the Iteratee into a Subscriber, then subscribe it to the Publisher.