play.api.libs.iteratee

Iteratee

object Iteratee extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Iteratee
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

  1. def != (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def consume [E] : AnyRef { def apply[B,That]()(implicit t: E => TraversableOnce[B],implicit bf: scala.collection.generic.CanBuildFrom[E,B,That]): play.api.libs.iteratee.Iteratee[E,That] }

    Create an Iteratee which consumes and concatenates all Input chunks

    Create an Iteratee which consumes and concatenates all Input chunks

    Example:

      // Get all chunks of input
      def getAll: Iteratee[Array[Byte], Array[Byte]] = Iteratee.consume[Array[Byte]]()
    

    Chunks type should be viewable as TraversableOnce

  9. def eofOrElse [E] : AnyRef { def apply[A,B](otherwise: B)(then: A): play.api.libs.iteratee.Iteratee[E,Either[B,A]] }

  10. def eq (arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def flatten [E, A] (i: Promise[Iteratee[E, A]]): Iteratee[E, A]

    flatten a Promise of Iteratee] into an Iteratee

    flatten a Promise of Iteratee] into an Iteratee

    i

    a promise of iteratee

  14. def fold [E, A] (state: A)(f: (A, E) ⇒ A): Iteratee[E, A]

    Create an Iteratee which folds the content of the Input using a given function and an initial state

    Create an Iteratee which folds the content of the Input using a given function and an initial state

    Example:

      // Count the number of input elements
      def count[E]: Iteratee[E, Int] = Iteratee.fold(0)((c, _) => c + 1)
    
    state

    initial state

    f

    a function folding the previous state and an input to a new state

  15. def fold1 [E, A] (state: Promise[A])(f: (A, E) ⇒ Promise[A]): Iteratee[E, A]

    Create an Iteratee which folds the content of the Input using a given function and an initial state

    Create an Iteratee which folds the content of the Input using a given function and an initial state

    It also gives the opportunity to return a Promise so that promises are combined in a complete reactive flow of logic.

    state

    initial state

    f

    a function folding the previous state and an input to a new promise of state

  16. def fold1 [E, A] (state: A)(f: (A, E) ⇒ Promise[A]): Iteratee[E, A]

    Create an Iteratee which folds the content of the Input using a given function and an initial state

    Create an Iteratee which folds the content of the Input using a given function and an initial state

    It also gives the opportunity to return a Promise so that promises are combined in a complete reactive flow of logic.

    state

    initial state

    f

    a function folding the previous state and an input to a new promise of state

  17. def foreach [E] (f: (E) ⇒ Unit): Iteratee[E, Unit]

    f

    the function that should be executed for every chunk

    returns

    an Iteratee which executes a provided function for every chunk. Returns Done on EOF.

    Example:

      // Get all chunks of input
      def printChunks: Iteratee[String, Unit] = Iteratee.foreach[String]( s => println(s) )
    
  18. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  19. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  20. def ignore [E] : Iteratee[E, Unit]

    returns

    an Iteratee which just ignores its input

  21. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  22. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  25. def repeat [E, A] (i: Iteratee[E, A]): Iteratee[E, Seq[A]]

    i

    an iteratee used repeatedly to compute a sequence of results

    returns

    an Iteratee which pushes the input into the provided Iteratee, starting over again each time it terminates until an EOF is received, collecting a sequence of results of the different use of the iteratee

  26. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  27. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any