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.
- Alphabetic
- By Inheritance
- AsyncParser
- DocLike
- CloseOnNeed
- IsClosed
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AsyncParser()(implicit xmlVersion: XmlVersion)
Type Members
-
abstract
type
Token <: OptimisationToken
- Attributes
- protected
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
++(close2: CloseOnNeed): CloseOnNeed
- Definition Classes
- CloseOnNeed
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addEndMisc(m: xml.PullType): Unit
- Attributes
- protected
-
def
addPrologMisc(m: xml.PullType): Unit
- Attributes
- protected
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
closeResource: Unit
- Definition Classes
- CloseOnNeed
-
def
copyProlog(p: Prolog): Unit
- Attributes
- protected
-
var
depth: Int
- Attributes
- protected
-
def
doClose: Unit
Closes the feeder and parser
Closes the feeder and parser
- Attributes
- protected
- Definition Classes
- AsyncParser → CloseOnNeed
-
def
end: EndMisc
- Definition Classes
- AsyncParser → DocLike
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
eventHandler: (Either[Int, Throwable]) ⇒ xml.PullType
- Attributes
- protected
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
incompOrEnd: xml.PullType
- Attributes
- protected
-
def
isClosed: Boolean
- Definition Classes
- CloseOnNeed → IsClosed
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iteratee[F[_]](implicit arg0: Monad[F]): ResumableIter[DataChunk, F, EphemeralStream[xml.PullType]]
Provides a ResumableIter that converts DataChunks via a parser into a stream of PullTypes.
Provides a ResumableIter that converts DataChunks via a parser into a stream of PullTypes. Returns Done when there are results from the pushed chunks.
Calls AsyncParser parse
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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).
-
def
nextStream(): EphemeralStream[xml.PullType]
- Attributes
- protected
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
prolog: Prolog
- Definition Classes
- AsyncParser → DocLike
-
def
pump(): Input[xml.PullType]
- Attributes
- protected
-
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
-
var
started: Boolean
- Attributes
- protected
-
def
startedElementProcessing: Boolean
The document element has been reached
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()