Class SMInputContext
java.lang.Object
org.codehaus.staxmate.in.SMInputContext
Class that encapsulates details about context in which StaxMate input
is done. The most important of the details is the stream reader to use
(since that is eventually invoked to do the real output), and its
properties.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDepth()Method for accessing starting location of the currently pointed-to event, within input stream.Method for accessing the currently pointed-to location within input stream.protected org.codehaus.stax2.XMLStreamReader2
-
Field Details
-
_allocator
-
-
Constructor Details
-
SMInputContext
public SMInputContext(org.codehaus.stax2.XMLStreamReader2 sr)
-
-
Method Details
-
currentAsEvent
- Throws:
XMLStreamException
-
getStreamReader
protected org.codehaus.stax2.XMLStreamReader2 getStreamReader() -
getDepth
public int getDepth() -
getEventLocation
Method for accessing starting location of the currently pointed-to event, within input stream. -
getStreamLocation
Method for accessing the currently pointed-to location within input stream. May be useful for indicating error location, for example.
-