scales.aalto.parser.pull

AsyncParser

abstract class AsyncParser extends CloseOnNeed with DocLike

An AynscParser, a DataChunk is fed in via nextInput which, in turn, returns an Input[EphmeralStream[PullType]] of events. When the Input is El then the stream may be evaluated to get all available events, and will return empty when no more for that data chunk is available.

See nextInput for more info.

Linear Supertypes
DocLike, CloseOnNeed, IsClosed, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AsyncParser
  2. DocLike
  3. CloseOnNeed
  4. IsClosed
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AsyncParser()(implicit xmlVersion: XmlVersion)

Type Members

  1. abstract type Token <: OptimisationToken

    Attributes
    protected

Abstract Value Members

  1. abstract val feeder: AsyncInputFeeder

    Attributes
    protected
  2. abstract val parser: AsyncXMLStreamReader

    Attributes
    protected
  3. abstract val strategy: MemoryOptimisationStrategy[Token]

    Attributes
    protected
  4. abstract val token: Token

    Attributes
    protected

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++(close2: CloseOnNeed): CloseOnNeed

    Definition Classes
    CloseOnNeed
  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. def addEndMisc(m: xml.PullType): Unit

    Attributes
    protected
  8. def addPrologMisc(m: xml.PullType): Unit

    Attributes
    protected
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def closeResource: Unit

    Definition Classes
    CloseOnNeed
  12. def copyProlog(p: Prolog): Unit

    Attributes
    protected
  13. var depth: Int

    Attributes
    protected
  14. def doClose: Unit

    Closes the feeder and parser

    Closes the feeder and parser

    Attributes
    protected
    Definition Classes
    AsyncParser → CloseOnNeed
  15. def end: EndMisc

    Definition Classes
    AsyncParser → DocLike
  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. val eventHandler: (Int) ⇒ xml.PullType

    Attributes
    protected
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. val incompOrEnd: xml.PullType

    Attributes
    protected
  23. def isClosed: Boolean

    Definition Classes
    CloseOnNeed → IsClosed
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. def nextInput(d: DataChunk): Input[EphemeralStream[xml.PullType]]

    Given a DataChunk will return the next available data stream.

    Given a DataChunk will return the next available data stream. Returns EOF when the Parser is closed, Empty when more DataChunks are needed. Returning El[EphemeralStream[PullType]] provides a stream which will lazily evalulate all available Xml Events from this DataChunk.

    NOTEs (see Aalto-xml feeder.feedInput for details on this): 1) All existing events from the last El should be consumed before calling nextInput again 2) The DataChunk passed in should not be re-used until the stream returns empty (or Empty/EOF is returned).

  27. def nextStream(): EphemeralStream[xml.PullType]

    Attributes
    protected
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def prolog: Prolog

    Definition Classes
    AsyncParser → DocLike
  31. def pump(): Input[xml.PullType]

    Attributes
    protected
  32. def pumpMisc(): Input[xml.PullType]

    Pushes through Misc items in either prolog or the epilog

    Pushes through Misc items in either prolog or the epilog

    Attributes
    protected
  33. var started: Boolean

    Attributes
    protected
  34. def startedElementProcessing: Boolean

    The document element has been reached

  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DocLike

Inherited from CloseOnNeed

Inherited from IsClosed

Inherited from AnyRef

Inherited from Any

Ungrouped