Class SMInputContext

java.lang.Object
org.codehaus.staxmate.in.SMInputContext

public final class SMInputContext extends Object
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 Details

    • _streamReader

      final org.codehaus.stax2.XMLStreamReader2 _streamReader
    • _allocator

      protected XMLEventAllocator _allocator
  • Constructor Details

    • SMInputContext

      public SMInputContext(org.codehaus.stax2.XMLStreamReader2 sr)
  • Method Details

    • currentAsEvent

      public XMLEvent currentAsEvent() throws XMLStreamException
      Throws:
      XMLStreamException
    • getStreamReader

      protected org.codehaus.stax2.XMLStreamReader2 getStreamReader()
    • getDepth

      public int getDepth()
    • getEventLocation

      public Location getEventLocation()
      Method for accessing starting location of the currently pointed-to event, within input stream.
    • getStreamLocation

      public Location getStreamLocation()
      Method for accessing the currently pointed-to location within input stream. May be useful for indicating error location, for example.