scala.xml.pull

ProducerConsumerIterator

trait ProducerConsumerIterator[T >: Null] extends Iterator[T]

known subclasses: XMLEventReader
source: XMLEventReader.scala
Inherited
  1. Hide All
  2. Show all
  1. Iterator
  2. TraversableOnce
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Type Members

  1. class GroupedIterator[B >: A] extends Iterator[Seq[B]]

    A flexible iterator for transforming an Iterator[A] into an Iterator[Seq[A]], with configurable sequence size, step, and strategy for dealing with elements which don't fit evenly.

Value Members

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

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ++(that: ⇒ Iterator[T]): Iterator[T]

    [use case] Concatenates this iterator with another.

  7. def ++[B >: T](that: ⇒ Iterator[B]): Iterator[B]

    Concatenates this iterator with another.

  8. def /:[B](z: B)(op: (B, T) ⇒ B): B

    Applies a binary operator to a start value and all elements of this traversable or iterator, going left to right.

  9. def :\[B](z: B)(op: (T, B) ⇒ B): B

    Applies a binary operator to all elements of this traversable or iterator and a start value, going right to left.

  10. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  11. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  12. val EndOfStream: T

  13. val MaxQueueSize: Int

  14. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this traversable or iterator to a string builder.

  15. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this traversable or iterator to a string builder using a separator string.

  16. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this traversable or iterator to a string builder using start, end, and separator strings.

  17. def append[B >: T](that: Iterator[B]): Iterator[B]

    Returns a new iterator that first yields the elements of this iterator followed by the elements provided by iterator that.

  18. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  19. def available(): Boolean

  20. def buffered: BufferedIterator[T]

    Creates a buffered iterator from this iterator.

  21. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  22. def collect[B](pf: PartialFunction[T, B]): Iterator[B]

    Creates an iterator by transforming values produced by this iterator with a partial function, dropping those values for which the partial function is not defined.

  23. def contains(elem: Any): Boolean

    Tests whether this iterator contains a given value as an element.

  24. def copyToArray(xs: Array[T], start: Int, len: Int): Unit

    [use case] Copies selected values produced by this iterator to an array.

  25. def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Unit

    Copies selected values produced by this iterator to an array.

  26. def copyToArray(xs: Array[T]): Unit

    [use case] Copies values of this traversable or iterator to an array.

  27. def copyToArray[B >: T](xs: Array[B]): Unit

    Copies values of this traversable or iterator to an array.

  28. def copyToArray(xs: Array[T], start: Int): Unit

    [use case] Copies values of this traversable or iterator to an array.

  29. def copyToArray[B >: T](xs: Array[B], start: Int): Unit

    Copies values of this traversable or iterator to an array.

  30. def copyToBuffer[B >: T](dest: Buffer[B]): Unit

    Copies all elements of this traversable or iterator to a buffer.

  31. def count(p: (T) ⇒ Boolean): Int

    Counts the number of elements in the traversable or iterator which satisfy a predicate.

  32. def counted: CountedIterator[T]

    Returns a counted iterator from this iterator.

  33. def drop(n: Int): Iterator[T]

    Advances this iterator past the first n elements, or the length of the iterator, whichever is smaller.

  34. def dropWhile(p: (T) ⇒ Boolean): Iterator[T]

    Skips longest sequence of elements of this iterator which satisfy given predicate p, and returns an iterator of the remaining elements.

  35. def duplicate: (Iterator[T], Iterator[T])

    Creates two new iterators that both iterate over the same elements as this iterator (in the same order).

  36. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  37. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  38. def exists(p: (T) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the values produced by this iterator.

  39. def filter(p: (T) ⇒ Boolean): Iterator[T]

    Returns an iterator over all the elements of this iterator that satisfy the predicate p.

  40. def filterNot(p: (T) ⇒ Boolean): Iterator[T]

    Creates an iterator over all the elements of this iterator which do not satisfy a predicate p.

  41. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  42. def find(p: (T) ⇒ Boolean): Option[T]

    Finds the first value produced by the iterator satisfying a predicate, if any.

  43. def findIndexOf(p: (T) ⇒ Boolean): Int

    Returns index of the first element satisfying a predicate, or -1.

  44. def flatMap[B](f: (T) ⇒ Iterator[B]): Iterator[B]

    Creates a new iterator by applying a function to all values produced by this iterator and concatenating the results.

  45. def foldLeft[B](z: B)(op: (B, T) ⇒ B): B

    Applies a binary operator to a start value and all elements of this traversable or iterator, going left to right.

  46. def foldRight[B](z: B)(op: (T, B) ⇒ B): B

    Applies a binary operator to all elements of this traversable or iterator and a start value, going right to left.

  47. def forall(p: (T) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all values produced by this iterator.

  48. def foreach(f: (T) ⇒ Unit): Unit

    [use case] Applies a function f to all values produced by this iterator.

  49. def foreach[U](f: (T) ⇒ U): Unit

    Applies a function f to all values produced by this iterator.

  50. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  51. def grouped[B >: T](size: Int): GroupedIterator[B]

    Returns an iterator which groups this iterator into fixed size blocks.

  52. def hasDefiniteSize: Boolean

    Tests whether this Iterator has a known size.

  53. def hasNext(): Boolean

    Tests whether this iterator can provide another element.

  54. def hashCode(): Int

    Returns a hash code value for the object.

  55. def indexOf[B >: T](elem: B): Int

    Returns the index of the first occurrence of the specified object in this iterable object.

  56. def indexWhere(p: (T) ⇒ Boolean): Int

    Returns the index of the first produced value satisfying a predicate, or -1.

  57. def interruptibly[T](body: ⇒ T): Option[T]

  58. def isEmpty: Boolean

    Tests whether this iterator is empty.

  59. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  60. def isTraversableAgain: Boolean

    Tests whether this Iterator can be repeatedly traversed.

  61. def length: Int

    Returns the number of elements in this iterator.

  62. def map[B](f: (T) ⇒ B): Iterator[B]

    Creates a new iterator that maps all produced values of this iterator to new values using a transformation function.

  63. def max: T

    [use case] Finds the largest element.

  64. def max[B >: T](implicit cmp: Ordering[B]): T

    Finds the largest element.

  65. def min: T

    [use case] Finds the smallest element.

  66. def min[B >: T](implicit cmp: Ordering[B]): T

    Finds the smallest element.

  67. def mkString: String

    Displays all elements of this traversable or iterator in a string.

  68. def mkString(sep: String): String

    Displays all elements of this traversable or iterator in a string using a separator string.

  69. def mkString(start: String, sep: String, end: String): String

    Displays all elements of this traversable or iterator in a string using start, end, and separator strings.

  70. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  71. def next(): T

    Produces the next element of this iterator.

  72. def nonEmpty: Boolean

    Tests whether the traversable or iterator is not empty.

  73. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  74. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  75. def padTo(len: Int, elem: T): Iterator[T]

    [use case] Appends an element value to this iterator until a given target length is reached.

  76. def padTo[A1 >: T](len: Int, elem: A1): Iterator[A1]

    Appends an element value to this iterator until a given target length is reached.

  77. def partition(p: (T) ⇒ Boolean): (Iterator[T], Iterator[T])

    Partitions this iterator in two iterators according to a predicate.

  78. def patch[B >: T](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]

    Returns this iterator with patched values.

  79. def produce(x: T): Unit

  80. def product: Int

    [use case] Multiplies up the elements of this collection.

  81. def product[B >: T](implicit num: Numeric[B]): B

    Multiplies up the elements of this collection.

  82. def readInto[B >: T](xs: Array[B]): Unit

  83. def readInto[B >: T](xs: Array[B], start: Int): Unit

  84. def readInto[B >: T](xs: Array[B], start: Int, sz: Int): Unit

    Fills the given array xs with the elements of this sequence starting at position start.

  85. def reduceLeft[B >: T](op: (B, T) ⇒ B): B

    Applies a binary operator to all elements of this traversable or iterator, going left to right.

  86. def reduceLeftOption[B >: T](op: (B, T) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this traversable or iterator, going left to right.

  87. def reduceRight[B >: T](op: (T, B) ⇒ B): B

    Applies a binary operator to all elements of this traversable or iterator, going right to left.

  88. def reduceRightOption[B >: T](op: (T, B) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this traversable or iterator, going right to left.

  89. def reversed: List[T]

  90. def sameElements(that: Iterator[_]): Boolean

    Tests if another iterator produces the same values as this one.

  91. def size: Int

    The size of this traversable or iterator.

  92. def slice(from: Int, until: Int): Iterator[T]

    Creates an iterator returning an interval of the values produced by this iterator.

  93. def sliding[B >: T](size: Int, step: Int = 1): GroupedIterator[B]

    Returns an iterator which presents a "sliding window" view of another iterator.

  94. def sum: Int

    [use case] Sums up the elements of this collection.

  95. def sum[B >: T](implicit num: Numeric[B]): B

    Sums up the elements of this collection.

  96. def synchronized[T0](arg0: T0): T0

  97. def take(n: Int): Iterator[T]

    Selects first n values of this iterator.

  98. def takeWhile(p: (T) ⇒ Boolean): Iterator[T]

    Takes longest prefix of values produced by this iterator that satisfy a predicate.

  99. def toArray: Array[T]

    [use case] Converts this traversable or iterator to an array.

  100. def toArray[B >: T](implicit arg0: ClassManifest[B]): Array[B]

    Converts this traversable or iterator to an array.

  101. def toBuffer[B >: T]: Buffer[B]

    Converts this traversable or iterator to a mutable buffer.

  102. def toIndexedSeq[B >: T]: IndexedSeq[B]

    Converts this traversable or iterator to an indexed sequence.

  103. def toIterable: Iterable[T]

    Converts this traversable or iterator to an iterable collection.

  104. def toIterator: Iterator[T]

    Returns an Iterator over the elements in this traversable or iterator.

  105. def toList: List[T]

    Converts this traversable or iterator to a list.

  106. def toMap[T, U](implicit ev: <:<[T, (T, U)]): Map[T, U]

    Converts this traversable or iterator to a map.

  107. def toSeq: Seq[T]

    Converts this traversable or iterator to a sequence.

  108. def toSet[B >: T]: Set[B]

    Converts this traversable or iterator to a set.

  109. def toStream: Stream[T]

    Converts this traversable or iterator to a stream.

  110. def toString(): String

    Converts this iterator to a string.

  111. def toTraversable: Traversable[T]

    Converts this traversable or iterator to an unspecified Traversable.

  112. def wait(): Unit

  113. def wait(arg0: Long, arg1: Int): Unit

  114. def wait(arg0: Long): Unit

  115. def withFilter(p: (T) ⇒ Boolean): Iterator[T]

    Creates an iterator over all the elements of this iterator that satisfy the predicate p.

  116. def zip[B](that: Iterator[B]): Iterator[(T, B)]

    Creates an iterator formed from this iterator and another iterator by combining corresponding values in pairs.

  117. def zipAll[B](that: Iterator[B], thisElem: T, thatElem: B): Iterator[(T, B)]

    [use case] Creates an iterator formed from this iterator and another iterator by combining corresponding elements in pairs.

  118. def zipAll[B, A1 >: T, B1 >: B](that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]

    Creates an iterator formed from this iterator and another iterator by combining corresponding elements in pairs.

  119. def zipWithIndex: Iterator[(T, Int)] {...}

    Creates an iterator that pairs each element produced by this iterator with its index, counting from 0.