Packages

  • package root
    Definition Classes
    root
  • package scales

    Scales Xml provides both a more flexible approach to XML handling and a simplified way of interacting with XML.

    Scales Xml provides both a more flexible approach to XML handling and a simplified way of interacting with XML.

    It fits nicely with the Java APIs you know, TrAX and javax.xml.validation for example, allowing you to run XSLTs and convert to and from Scales XML and other DOMs.

    It also provides a far more XPath like experience than the normal Scala XML, Paths look like XPaths and work like them too (with many of the same functions and axes).

    Definition Classes
    root
  • package xml
    Definition Classes
    scales
  • package parser
    Definition Classes
    xml
  • package pull
    Definition Classes
    parser
  • ByteSourceUser
  • CharacterSourceUser
  • Iterate
  • PullIterateeFunctions
  • PullIteratees
  • PullUtils
  • SourceUser
  • XmlPull
  • XmlPulls

trait XmlPull extends Iterator[xml.PullType] with DocLike

Basis for xmlpulls, an Iterator[PullType]

Linear Supertypes
DocLike, Iterator[xml.PullType], IterableOnceOps[xml.PullType, Iterator, Iterator[xml.PullType]], IterableOnce[xml.PullType], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. XmlPull
  2. DocLike
  3. Iterator
  4. IterableOnceOps
  5. IterableOnce
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]]
    Definition Classes
    Iterator
  2. abstract type Token <: OptimisationToken

Abstract Value Members

  1. abstract val parser: XMLStreamReader
    Attributes
    protected[xml]
  2. abstract val resourceCloser: () => Unit
    Attributes
    protected[xml]
  3. abstract val strategy: MemoryOptimisationStrategy[Token]

    Why is this on a pull parser? Simple answer is by default it costs little, and by selection the user can optimise whole streams at an early and central place.

    Why is this on a pull parser? Simple answer is by default it costs little, and by selection the user can optimise whole streams at an early and central place. Optimising the stream in onQNames or another iteratee or in user code seems to go against the definition of a good design.

    Attributes
    protected[xml]
  4. abstract val token: Token
    Attributes
    protected[xml]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ++[B >: xml.PullType](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @inline()
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def addString(b: StringBuilder): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  6. final def addString(b: StringBuilder, sep: String): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  7. def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
    Definition Classes
    IterableOnceOps
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def buffered: BufferedIterator[xml.PullType]
    Definition Classes
    Iterator
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def collect[B](pf: PartialFunction[xml.PullType, B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  12. def collectFirst[B](pf: PartialFunction[xml.PullType, B]): Option[B]
    Definition Classes
    IterableOnceOps
  13. def concat[B >: xml.PullType](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  14. def contains(elem: Any): Boolean
    Definition Classes
    Iterator
  15. def copyToArray[B >: xml.PullType](xs: Array[B], start: Int, len: Int): Int
    Definition Classes
    IterableOnceOps
  16. def copyToArray[B >: xml.PullType](xs: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  17. def copyToArray[B >: xml.PullType](xs: Array[B]): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  18. def corresponds[B](that: IterableOnce[B])(p: (xml.PullType, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  19. def count(p: (xml.PullType) => Boolean): Int
    Definition Classes
    IterableOnceOps
  20. val depth: Int

    If the depth is -1 then we haven't hit an element yet, and start should keep pumping until that happens.

    If the depth is -1 then we haven't hit an element yet, and start should keep pumping until that happens.

    If the depth is -1 after processing the end root (haveRoot), then we keep pumping into the endMisc

    Attributes
    protected[xml]
  21. def distinct: Iterator[xml.PullType]
    Definition Classes
    Iterator
  22. def distinctBy[B](f: (xml.PullType) => B): Iterator[xml.PullType]
    Definition Classes
    Iterator
  23. def drop(n: Int): Iterator[xml.PullType]
    Definition Classes
    Iterator → IterableOnceOps
  24. def dropWhile(p: (xml.PullType) => Boolean): Iterator[xml.PullType]
    Definition Classes
    Iterator → IterableOnceOps
  25. def duplicate: (Iterator[xml.PullType], Iterator[xml.PullType])
    Definition Classes
    Iterator
  26. def end: EndMisc
    Definition Classes
    XmlPullDocLike
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  29. def exists(p: (xml.PullType) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  30. def filter(p: (xml.PullType) => Boolean): Iterator[xml.PullType]
    Definition Classes
    Iterator → IterableOnceOps
  31. def filterNot(p: (xml.PullType) => Boolean): Iterator[xml.PullType]
    Definition Classes
    Iterator → IterableOnceOps
  32. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  33. def find(p: (xml.PullType) => Boolean): Option[xml.PullType]
    Definition Classes
    IterableOnceOps
  34. def flatMap[B](f: (xml.PullType) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  35. def flatten[B](implicit ev: (xml.PullType) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  36. def fold[A1 >: xml.PullType](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  37. def foldLeft[B](z: B)(op: (B, xml.PullType) => B): B
    Definition Classes
    IterableOnceOps
  38. def foldRight[B](z: B)(op: (xml.PullType, B) => B): B
    Definition Classes
    IterableOnceOps
  39. def forall(p: (xml.PullType) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  40. def foreach[U](f: (xml.PullType) => U): Unit
    Definition Classes
    IterableOnceOps
  41. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  42. def grouped[B >: xml.PullType](size: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  43. def hasNext: Boolean
    Definition Classes
    XmlPull → Iterator
  44. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  45. val haveRoot: Boolean
    Attributes
    protected[xml]
  46. val iStrictPath: List[QName]
    Attributes
    protected[xml]
  47. def indexOf[B >: xml.PullType](elem: B, from: Int): Int
    Definition Classes
    Iterator
  48. def indexOf[B >: xml.PullType](elem: B): Int
    Definition Classes
    Iterator
  49. def indexWhere(p: (xml.PullType) => Boolean, from: Int): Int
    Definition Classes
    Iterator
  50. def internalClose: Unit
    Attributes
    protected[xml]
  51. def isEmpty: Boolean
    Definition Classes
    Iterator → IterableOnceOps
    Annotations
    @deprecatedOverriding()
  52. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  53. def isTraversableAgain: Boolean
    Definition Classes
    IterableOnceOps
  54. final val it: Iterator[xml.PullType]
  55. final def iterator: Iterator[xml.PullType]
    Definition Classes
    Iterator → IterableOnce
    Annotations
    @inline()
  56. def knownSize: Int
    Definition Classes
    IterableOnce
  57. final def length: Int
    Definition Classes
    Iterator
    Annotations
    @inline()
  58. def map[B](f: (xml.PullType) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  59. def max[B >: xml.PullType](implicit ord: Ordering[B]): xml.PullType
    Definition Classes
    IterableOnceOps
  60. def maxBy[B](f: (xml.PullType) => B)(implicit ord: Ordering[B]): xml.PullType
    Definition Classes
    IterableOnceOps
  61. def maxByOption[B](f: (xml.PullType) => B)(implicit ord: Ordering[B]): Option[xml.PullType]
    Definition Classes
    IterableOnceOps
  62. def maxOption[B >: xml.PullType](implicit ord: Ordering[B]): Option[xml.PullType]
    Definition Classes
    IterableOnceOps
  63. def min[B >: xml.PullType](implicit ord: Ordering[B]): xml.PullType
    Definition Classes
    IterableOnceOps
  64. def minBy[B](f: (xml.PullType) => B)(implicit ord: Ordering[B]): xml.PullType
    Definition Classes
    IterableOnceOps
  65. def minByOption[B](f: (xml.PullType) => B)(implicit ord: Ordering[B]): Option[xml.PullType]
    Definition Classes
    IterableOnceOps
  66. def minOption[B >: xml.PullType](implicit ord: Ordering[B]): Option[xml.PullType]
    Definition Classes
    IterableOnceOps
  67. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  68. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  69. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  70. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  71. def next(): xml.PullType
    Definition Classes
    XmlPull → Iterator
  72. def nextOption(): Option[xml.PullType]
    Definition Classes
    Iterator
  73. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  74. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  75. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  76. def padTo[B >: xml.PullType](len: Int, elem: B): Iterator[B]
    Definition Classes
    Iterator
  77. def partition(p: (xml.PullType) => Boolean): (Iterator[xml.PullType], Iterator[xml.PullType])
    Definition Classes
    Iterator
  78. def patch[B >: xml.PullType](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
    Definition Classes
    Iterator
  79. def product[B >: xml.PullType](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  80. def prolog: Prolog
    Definition Classes
    XmlPullDocLike
  81. def pumpEvent: xml.PullType
    Attributes
    protected[xml]
  82. def reduce[B >: xml.PullType](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  83. def reduceLeft[B >: xml.PullType](op: (B, xml.PullType) => B): B
    Definition Classes
    IterableOnceOps
  84. def reduceLeftOption[B >: xml.PullType](op: (B, xml.PullType) => B): Option[B]
    Definition Classes
    IterableOnceOps
  85. def reduceOption[B >: xml.PullType](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  86. def reduceRight[B >: xml.PullType](op: (xml.PullType, B) => B): B
    Definition Classes
    IterableOnceOps
  87. def reduceRightOption[B >: xml.PullType](op: (xml.PullType, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  88. def reversed: Iterable[xml.PullType]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  89. def sameElements[B >: xml.PullType](that: IterableOnce[B]): Boolean
    Definition Classes
    Iterator
  90. def scanLeft[B](z: B)(op: (B, xml.PullType) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  91. def size: Int
    Definition Classes
    IterableOnceOps
  92. def slice(from: Int, until: Int): Iterator[xml.PullType]
    Definition Classes
    Iterator → IterableOnceOps
  93. def sliceIterator(from: Int, until: Int): Iterator[xml.PullType]
    Attributes
    protected
    Definition Classes
    Iterator
  94. def sliding[B >: xml.PullType](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  95. def span(p: (xml.PullType) => Boolean): (Iterator[xml.PullType], Iterator[xml.PullType])
    Definition Classes
    Iterator → IterableOnceOps
  96. def splitAt(n: Int): (Iterator[xml.PullType], Iterator[xml.PullType])
    Definition Classes
    IterableOnceOps
  97. def start: Unit

    Pumps until the first elem, always collecting the prolog

    Pumps until the first elem, always collecting the prolog

    Attributes
    protected[xml]
  98. def stepper[S <: Stepper[_]](implicit shape: StepperShape[xml.PullType, S]): S
    Definition Classes
    IterableOnce
  99. def sum[B >: xml.PullType](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  100. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  101. def take(n: Int): Iterator[xml.PullType]
    Definition Classes
    Iterator → IterableOnceOps
  102. def takeWhile(p: (xml.PullType) => Boolean): Iterator[xml.PullType]
    Definition Classes
    Iterator → IterableOnceOps
  103. def tapEach[U](f: (xml.PullType) => U): Iterator[xml.PullType]
    Definition Classes
    Iterator → IterableOnceOps
  104. def to[C1](factory: Factory[xml.PullType, C1]): C1
    Definition Classes
    IterableOnceOps
  105. def toArray[B >: xml.PullType](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  106. final def toBuffer[B >: xml.PullType]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  107. def toIndexedSeq: IndexedSeq[xml.PullType]
    Definition Classes
    IterableOnceOps
  108. def toList: List[xml.PullType]
    Definition Classes
    IterableOnceOps
  109. def toMap[K, V](implicit ev: <:<[xml.PullType, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  110. def toSeq: Seq[xml.PullType]
    Definition Classes
    IterableOnceOps
  111. def toSet[B >: xml.PullType]: Set[B]
    Definition Classes
    IterableOnceOps
  112. def toString(): String
    Definition Classes
    Iterator → AnyRef → Any
  113. def toVector: Vector[xml.PullType]
    Definition Classes
    IterableOnceOps
  114. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  115. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  116. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  117. implicit val weAreInAParser: FromParser
  118. def withFilter(p: (xml.PullType) => Boolean): Iterator[xml.PullType]
    Definition Classes
    Iterator
  119. def zip[B](that: IterableOnce[B]): Iterator[(xml.PullType, B)]
    Definition Classes
    Iterator
  120. def zipAll[A1 >: xml.PullType, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
    Definition Classes
    Iterator
  121. def zipWithIndex: Iterator[(xml.PullType, Int)]
    Definition Classes
    Iterator → IterableOnceOps

Deprecated Value Members

  1. final def /:[B](z: B)(op: (B, xml.PullType) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldLeft instead of /:

  2. final def :\[B](z: B)(op: (xml.PullType, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldRight instead of :\

  3. def aggregate[B](z: => B)(seqop: (B, xml.PullType) => B, combop: (B, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) aggregate is not relevant for sequential collections. Use foldLeft(z)(seqop) instead.

  4. final def copyToBuffer[B >: xml.PullType](dest: Buffer[B]): Unit
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use dest ++= coll instead

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

  6. def scanRight[B](z: B)(op: (xml.PullType, B) => B): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Call scanRight on an Iterable instead.

  7. def seq: XmlPull.this.type
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Iterator.seq always returns the iterator itself

  8. final def toIterator: Iterator[xml.PullType]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator instead of .toIterator

  9. final def toStream: Stream[xml.PullType]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .to(LazyList) instead of .toStream

Inherited from DocLike

Inherited from Iterator[xml.PullType]

Inherited from IterableOnceOps[xml.PullType, Iterator, Iterator[xml.PullType]]

Inherited from IterableOnce[xml.PullType]

Inherited from AnyRef

Inherited from Any

Ungrouped