Package org.codehaus.staxmate.in
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
FieldsModifier and TypeFieldDescriptionprotected XMLEventAllocator
(package private) final org.codehaus.stax2.XMLStreamReader2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getDepth()
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
-
_streamReader
final org.codehaus.stax2.XMLStreamReader2 _streamReader -
_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.
-