Class/Object

woodstox

RichXMLStreamReader2

Related Docs: object RichXMLStreamReader2 | package woodstox

Permalink

final class RichXMLStreamReader2 extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichXMLStreamReader2
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichXMLStreamReader2(sr: XMLStreamReader2)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def foreach[U](path: String)(f: ⇒ U): Unit

    Permalink

    Call f() for every START_ELEMENT that satisfies the XPath-like path.

    Call f() for every START_ELEMENT that satisfies the XPath-like path.

    Annotations
    @inline()
  6. def getAttributeValue(name: String): String

    Permalink
  7. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  8. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  9. def readChildElementText(name: String): String

    Permalink
  10. def readElementAsXMLString(): String

    Permalink
  11. def readElementText(): String

    Permalink

    Read the contents of an Element.

    Read the contents of an Element. Only works at the START_ELEMENT and if the element has no other nested elements

  12. def require(cond: Boolean, msg: ⇒ String): Unit

    Permalink
    Annotations
    @inline()
  13. def requireEither(one: Int, two: Int): Unit

    Permalink
  14. def requireNot(tpe: Int): Unit

    Permalink

    Opposite of XMLStreamReader.require()

  15. def seekFirstEventPastRootElement(expectedName: String): Unit

    Permalink

    Seek to the first parsing event after the START_ELEMENT of the root tag after verifying the root tag name

  16. def seekFirstEventPastRootElement(): Unit

    Permalink

    Seek to the first parsing event after the START_ELEMENT of the root tag

  17. def seekToAnyMatching(name: String): Int

    Permalink

    Seek to the first element with name (at any depth)

    Seek to the first element with name (at any depth)

    Returns the depth that the element was found at

  18. def seekToChildElement(name: String): Unit

    Permalink
  19. def seekToChildElement(): Unit

    Permalink
  20. def seekToEndOfParentElement(): Unit

    Permalink
  21. def seekToRootElement(expectedName: String): Unit

    Permalink

    Given a freshly opened XMLStreamReader2, move to the START_ELEMENT of the ROOT element (skipping stuff like DTDs) and require that the root name be the expectedName

  22. def seekToRootElement(): Unit

    Permalink

    Given a freshly opened XMLStreamReader2, move to the START_ELEMENT of the ROOT element (skipping stuff like DTDs)

  23. def seekToSiblingElement(name: String): Unit

    Permalink

    Seek to the first sibling element (the first START_ELEMENT at the current depth) that matching name

    Seek to the first sibling element (the first START_ELEMENT at the current depth) that matching name

    e.g.

    <root> <foo> <bar></bar> <target>We don't want this</target> </foo> <target>This is what we want</target> </root>

    A call to seekFirstEventPastRootElement leaves us just after the <root> element. Then a call to seekToSiblingElement("target") will skip <foo> and the nested <bar> and <target> elements and end up on the second <target> element that is a sibling to <foo>

  24. def seekToSiblingElement(): Unit

    Permalink
  25. val sr: XMLStreamReader2

    Permalink
  26. def toString(): String

    Permalink
    Definition Classes
    Any
  27. def tryReadChildElementText(name: String): Option[String]

    Permalink
  28. def trySeekToChildElement(name: String): Boolean

    Permalink
  29. def trySeekToChildElement(): Boolean

    Permalink
  30. def trySeekToSiblingElement(name: String): Boolean

    Permalink
  31. def trySeekToSiblingElement(): Boolean

    Permalink

Inherited from AnyVal

Inherited from Any

Ungrouped