|
Scala Library
|
|
scala/xml/pull/XMLEventReader.scala]
class
XMLEventReader(src : Source)
extends ProducerConsumerIterator[XMLEvent]A pull parser that offers to view an XML document as a series of events. Example usage:
import scala.xml.pull._
import scala.io.Source
object reader {
val src = Source.fromString(" ")
val er = new XMLEventReader(src)
def main(args: Array[String]) {
while (er.hasNext)
Console.println(er.next)
}
}
| Value Summary | |
val
|
EndOfStream : POISON |
override val
|
MaxQueueSize : Int |
val
|
preserveWS : Boolean |
| Method Summary | |
def
|
stop : Unit |
| Methods inherited from ProducerConsumerIterator | |
| interruptibly, produce, hasNext, next, available |
| Methods inherited from Iterator | |
| take, drop, slice, map, ++, flatMap, filter, filterNot, partialMap, takeWhile, partition, dropWhile, zip, padTo, zipWithIndex, zipAll, foreach, forall, exists, contains, find, indexWhere, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, reduceLeftOption, reduceRightOption, buffered, grouped, sliding, length, duplicate, patch, copyToArray, copyToArray, copyToArray, copyToBuffer, toList, toStream, toSeq, mkString, mkString, mkString, addString, addString, addString, toString, append, findIndexOf, collect, counted, readInto, readInto, readInto |
| Methods inherited from AnyRef | |
| getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Object Summary | |
protected case object
|
POISON
extends XMLEvent with Product
|
| Value Details |
val
preserveWS : Boolean
override
val
MaxQueueSize : Int
val
EndOfStream : POISON
| Method Details |
|
Scala Library
|
|