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.
Compose this Enumerator with an Enumeratee.
Compose this Enumerator with an Enumeratee. Alias for through
Alias for interleave
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.
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 its final input has been consumed.
Creates an Enumerator which calls the given callback when its final input has been consumed.
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.
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
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.
A producer which pushes input to an play.api.libs.iteratee.Iteratee.