play.api.libs.iteratee

Enumerator

trait Enumerator[E] extends AnyRef

A producer which pushes input to an play.api.libs.iteratee.Iteratee.

Self Type
Enumerator[E]
Source
Enumerator.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Enumerator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply[A](i: Iteratee[E, A]): Future[Iteratee[E, A]]

    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.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def &>[To](enumeratee: Enumeratee[E, To]): Enumerator[To]

    Compose this Enumerator with an Enumeratee.

    Compose this Enumerator with an Enumeratee. Alias for through

  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. def >-[B >: E](other: Enumerator[B]): Enumerator[B]

    Alias for interleave

  6. def >>>(e: Enumerator[E]): Enumerator[E]

    Alias for andThen

  7. def andThen(e: Enumerator[E]): Enumerator[E]

    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.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flatMap[U](f: (E) ⇒ Enumerator[U])(implicit ec: ExecutionContext): Enumerator[U]

    flatmaps the given function f onto parent Enumerator

    flatmaps the given function f onto parent Enumerator

    f

    function to map

    ec

    The context to execute the supplied function with. The context is prepared on the calling thread before being used.

    returns

    enumerator

  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. def interleave[B >: E](other: Enumerator[B]): Enumerator[B]

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def map[U](f: (E) ⇒ U)(implicit ec: ExecutionContext): Enumerator[U]

    maps the given function f onto parent Enumerator

    maps the given function f onto parent Enumerator

    f

    function to map

    ec

    The context to execute the supplied function with. The context is prepared on the calling thread before being used.

    returns

    enumerator

  19. def mapInput[U](f: (Input[E]) ⇒ Input[U])(implicit ec: ExecutionContext): Enumerator[U]

    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.

    f

    Used to transform the input.

    ec

    The context to execute the supplied function with. The context is prepared on the calling thread before being used.

  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def onDoneEnumerating(callback: ⇒ Unit)(implicit ec: ExecutionContext): Enumerator[E] { val pec: scala.concurrent.ExecutionContext }

    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.

    callback

    The callback to call

    ec

    The context to execute the supplied function with. The context is prepared on the calling thread before being used.

  24. def run[A](i: Iteratee[E, A]): Future[A]

    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.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def through[To](enumeratee: Enumeratee[E, To]): Enumerator[To]

    Compose this Enumerator with an Enumeratee

  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def |>>[A](i: Iteratee[E, A]): Future[Iteratee[E, A]]

    Alias for apply, produces input driving the given play.api.libs.iteratee.Iteratee to consume it.

  32. def |>>>[A](i: Iteratee[E, A]): Future[A]

    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.

  33. def |>>|[A](i: Iteratee[E, A]): Future[Step[E, A]]

    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.

Inherited from AnyRef

Inherited from Any

Ungrouped