class XMLEventReader extends AbstractIterator[XMLEvent] with ProducerConsumerIterator[XMLEvent]
Main entry point into creating an event-based XML parser. Treating this as a scala.collection.Iterator will provide access to the generated events.
- Annotations
- @deprecated
- Deprecated
(Since version 1.1.1) Consider javax.xml.stream.XMLEventReader instead.
- Alphabetic
- By Inheritance
- XMLEventReader
- ProducerConsumerIterator
- AbstractIterator
- Iterator
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new XMLEventReader(src: Source)
- src
A scala.io.Source for XML data to parse
Type Members
- class GroupedIterator[B >: A] extends AbstractIterator[collection.immutable.Seq[B]]
- Definition Classes
- Iterator
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ++[B >: XMLEvent](xs: => collection.IterableOnce[B]): collection.Iterator[B]
- Definition Classes
- Iterator
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val EndOfStream: POISON
- Definition Classes
- XMLEventReader → ProducerConsumerIterator
- val MaxQueueSize: Int
- Definition Classes
- XMLEventReader → ProducerConsumerIterator
- final def addString(b: collection.mutable.StringBuilder): collection.mutable.StringBuilder
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def addString(b: collection.mutable.StringBuilder, sep: String): collection.mutable.StringBuilder
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def addString(b: collection.mutable.StringBuilder, start: String, sep: String, end: String): collection.mutable.StringBuilder
- Definition Classes
- IterableOnceOps
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def available(): Boolean
- Definition Classes
- ProducerConsumerIterator
- def buffered: collection.BufferedIterator[XMLEvent]
- Definition Classes
- Iterator
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def collect[B](pf: PartialFunction[XMLEvent, B]): collection.Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[XMLEvent, B]): Option[B]
- Definition Classes
- IterableOnceOps
- def concat[B >: XMLEvent](xs: => collection.IterableOnce[B]): collection.Iterator[B]
- Definition Classes
- Iterator
- def contains(elem: Any): Boolean
- Definition Classes
- Iterator
- def copyToArray[B >: XMLEvent](xs: Array[B], start: Int, len: Int): Int
- Definition Classes
- IterableOnceOps
- def copyToArray[B >: XMLEvent](xs: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- def copyToArray[B >: XMLEvent](xs: Array[B]): Int
- Definition Classes
- IterableOnceOps
- def corresponds[B](that: collection.IterableOnce[B])(p: (XMLEvent, B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: (XMLEvent) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def distinct: collection.Iterator[XMLEvent]
- Definition Classes
- Iterator
- def distinctBy[B](f: (XMLEvent) => B): collection.Iterator[XMLEvent]
- Definition Classes
- Iterator
- def drop(n: Int): collection.Iterator[XMLEvent]
- Definition Classes
- Iterator → IterableOnceOps
- def dropWhile(p: (XMLEvent) => Boolean): collection.Iterator[XMLEvent]
- Definition Classes
- Iterator → IterableOnceOps
- def duplicate: (collection.Iterator[XMLEvent], collection.Iterator[XMLEvent])
- Definition Classes
- Iterator
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(p: (XMLEvent) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def filter(p: (XMLEvent) => Boolean): collection.Iterator[XMLEvent]
- Definition Classes
- Iterator → IterableOnceOps
- def filterNot(p: (XMLEvent) => Boolean): collection.Iterator[XMLEvent]
- Definition Classes
- Iterator → IterableOnceOps
- def find(p: (XMLEvent) => Boolean): Option[XMLEvent]
- Definition Classes
- IterableOnceOps
- def flatMap[B](f: (XMLEvent) => collection.IterableOnce[B]): collection.Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def flatten[B](implicit ev: (XMLEvent) => collection.IterableOnce[B]): collection.Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def fold[A1 >: XMLEvent](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](z: B)(op: (B, XMLEvent) => B): B
- Definition Classes
- IterableOnceOps
- def foldRight[B](z: B)(op: (XMLEvent, B) => B): B
- Definition Classes
- IterableOnceOps
- def forall(p: (XMLEvent) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def foreach[U](f: (XMLEvent) => U): Unit
- Definition Classes
- IterableOnceOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def grouped[B >: XMLEvent](size: Int): GroupedIterator[B]
- Definition Classes
- Iterator
- def hasNext: Boolean
- Definition Classes
- ProducerConsumerIterator → Iterator
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def indexOf[B >: XMLEvent](elem: B, from: Int): Int
- Definition Classes
- Iterator
- def indexOf[B >: XMLEvent](elem: B): Int
- Definition Classes
- Iterator
- def indexWhere(p: (XMLEvent) => Boolean, from: Int): Int
- Definition Classes
- Iterator
- def interruptibly[A](body: => A): Option[A]
- Definition Classes
- ProducerConsumerIterator
- def isEmpty: Boolean
- Definition Classes
- Iterator → IterableOnceOps
- Annotations
- @deprecatedOverriding("isEmpty is defined as !hasNext; override hasNext instead", "2.13.0")
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraversableAgain: Boolean
- Definition Classes
- IterableOnceOps
- final def iterator: collection.Iterator[XMLEvent]
- Definition Classes
- Iterator → IterableOnce
- Annotations
- @inline()
- def knownSize: Int
- Definition Classes
- IterableOnce
- final def length: Int
- Definition Classes
- Iterator
- Annotations
- @inline()
- def map[B](f: (XMLEvent) => B): collection.Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def max[B >: XMLEvent](implicit ord: math.Ordering[B]): XMLEvent
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: (XMLEvent) => B)(implicit cmp: math.Ordering[B]): XMLEvent
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: (XMLEvent) => B)(implicit cmp: math.Ordering[B]): Option[XMLEvent]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: XMLEvent](implicit ord: math.Ordering[B]): Option[XMLEvent]
- Definition Classes
- IterableOnceOps
- def min[B >: XMLEvent](implicit ord: math.Ordering[B]): XMLEvent
- Definition Classes
- IterableOnceOps
- def minBy[B](f: (XMLEvent) => B)(implicit cmp: math.Ordering[B]): XMLEvent
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: (XMLEvent) => B)(implicit cmp: math.Ordering[B]): Option[XMLEvent]
- Definition Classes
- IterableOnceOps
- def minOption[B >: XMLEvent](implicit ord: math.Ordering[B]): Option[XMLEvent]
- Definition Classes
- IterableOnceOps
- final def mkString: String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(sep: String): String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(start: String, sep: String, end: String): String
- Definition Classes
- IterableOnceOps
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def next(): XMLEvent
- Definition Classes
- ProducerConsumerIterator → Iterator
- def nextOption(): Option[XMLEvent]
- Definition Classes
- Iterator
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding("nonEmpty is defined as !isEmpty; override isEmpty instead", "2.13.0")
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def padTo[B >: XMLEvent](len: Int, elem: B): collection.Iterator[B]
- Definition Classes
- Iterator
- def partition(p: (XMLEvent) => Boolean): (collection.Iterator[XMLEvent], collection.Iterator[XMLEvent])
- Definition Classes
- Iterator
- def patch[B >: XMLEvent](from: Int, patchElems: collection.Iterator[B], replaced: Int): collection.Iterator[B]
- Definition Classes
- Iterator
- val preserveWS: Boolean
- def produce(x: XMLEvent): Unit
- Definition Classes
- ProducerConsumerIterator
- def product[B >: XMLEvent](implicit num: math.Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def reduce[B >: XMLEvent](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: XMLEvent](op: (B, XMLEvent) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: XMLEvent](op: (B, XMLEvent) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: XMLEvent](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: XMLEvent](op: (XMLEvent, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: XMLEvent](op: (XMLEvent, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reversed: collection.Iterable[XMLEvent]
- Attributes
- protected
- Definition Classes
- IterableOnceOps
- def sameElements[B >: XMLEvent](that: collection.IterableOnce[B]): Boolean
- Definition Classes
- Iterator
- def scanLeft[B](z: B)(op: (B, XMLEvent) => B): collection.Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def size: Int
- Definition Classes
- IterableOnceOps
- def slice(from: Int, until: Int): collection.Iterator[XMLEvent]
- Definition Classes
- Iterator → IterableOnceOps
- def sliceIterator(from: Int, until: Int): collection.Iterator[XMLEvent]
- Attributes
- protected
- Definition Classes
- Iterator
- def sliding[B >: XMLEvent](size: Int, step: Int): GroupedIterator[B]
- Definition Classes
- Iterator
- def span(p: (XMLEvent) => Boolean): (collection.Iterator[XMLEvent], collection.Iterator[XMLEvent])
- Definition Classes
- Iterator → IterableOnceOps
- def splitAt(n: Int): (collection.Iterator[XMLEvent], collection.Iterator[XMLEvent])
- Definition Classes
- IterableOnceOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[XMLEvent, S]): S
- Definition Classes
- IterableOnce
- def stop(): Unit
- def sum[B >: XMLEvent](implicit num: math.Numeric[B]): B
- Definition Classes
- IterableOnceOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(n: Int): collection.Iterator[XMLEvent]
- Definition Classes
- Iterator → IterableOnceOps
- def takeWhile(p: (XMLEvent) => Boolean): collection.Iterator[XMLEvent]
- Definition Classes
- Iterator → IterableOnceOps
- def tapEach[U](f: (XMLEvent) => U): collection.Iterator[XMLEvent]
- Definition Classes
- Iterator → IterableOnceOps
- def to[C1](factory: Factory[XMLEvent, C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray[B >: XMLEvent](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- IterableOnceOps
- final def toBuffer[B >: XMLEvent]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def toIndexedSeq: collection.immutable.IndexedSeq[XMLEvent]
- Definition Classes
- IterableOnceOps
- def toList: collection.immutable.List[XMLEvent]
- Definition Classes
- IterableOnceOps
- def toMap[K, V](implicit ev: <:<[XMLEvent, (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- def toSeq: collection.immutable.Seq[XMLEvent]
- Definition Classes
- IterableOnceOps
- def toSet[B >: XMLEvent]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
- Definition Classes
- Iterator → AnyRef → Any
- def toVector: collection.immutable.Vector[XMLEvent]
- Definition Classes
- IterableOnceOps
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withFilter(p: (XMLEvent) => Boolean): collection.Iterator[XMLEvent]
- Definition Classes
- Iterator
- def zip[B](that: collection.IterableOnce[B]): collection.Iterator[(XMLEvent, B)]
- Definition Classes
- Iterator
- def zipAll[A1 >: XMLEvent, B](that: collection.IterableOnce[B], thisElem: A1, thatElem: B): collection.Iterator[(A1, B)]
- Definition Classes
- Iterator
- def zipWithIndex: collection.Iterator[(XMLEvent, Int)]
- Definition Classes
- Iterator → IterableOnceOps
- object POISON extends XMLEvent with Product with Serializable
- Attributes
- protected
Deprecated Value Members
- final def /:[B](z: B)(op: (B, XMLEvent) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- final def :\[B](z: B)(op: (XMLEvent, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldRight instead of :\
- def aggregate[B](z: => B)(seqop: (B, XMLEvent) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0)
aggregate
is not relevant for sequential collections. UsefoldLeft(z)(seqop)
instead.
- final def copyToBuffer[B >: XMLEvent](dest: Buffer[B]): Unit
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
dest ++= coll
instead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
- final def hasDefiniteSize: Boolean
- Definition Classes
- Iterator → IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) hasDefiniteSize on Iterator is the same as isEmpty
- def scanRight[B](z: B)(op: (XMLEvent, B) => B): collection.Iterator[B]
- Definition Classes
- Iterator
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Call scanRight on an Iterable instead.
- def seq: XMLEventReader.this.type
- Definition Classes
- Iterator
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterator.seq always returns the iterator itself
- final def toIterator: collection.Iterator[XMLEvent]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- final def toStream: collection.immutable.Stream[XMLEvent]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream