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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Compose this Enumerator with an Enumeratee.

    Compose this Enumerator with an Enumeratee. Alias for through

  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

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

    Alias for interleave

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

    Alias for andThen

  9. 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.

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. 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

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

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

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

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. 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

  21. 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.

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

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

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

    Definition Classes
    AnyRef
  25. 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.

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

    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.

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

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

    Compose this Enumerator with an Enumeratee

  29. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. 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.

  34. 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.

  35. 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