org.codehaus.staxmate
Class SMInputFactory

java.lang.Object
  extended by org.codehaus.staxmate.SMInputFactory

public final class SMInputFactory
extends java.lang.Object

Factory class used to create SMInputCursor instances.

Author:
Tatu Saloranta

Method Summary
static SMFlatteningCursor flatteningCursor(javax.xml.stream.XMLStreamReader sr, SMFilter f)
           
static javax.xml.stream.XMLInputFactory getGlobalXMLInputFactory()
          Convenience method that will get a lazily constructed shared XMLInputFactory instance.
static SMHierarchicCursor hierarchicCursor(javax.xml.stream.XMLStreamReader sr, SMFilter f)
           
static void main(java.lang.String[] args)
           
static SMHierarchicCursor rootCursor(javax.xml.stream.XMLStreamReader sr)
           
static SMHierarchicCursor rootElementCursor(javax.xml.stream.XMLStreamReader sr)
          Return a nested cursor that will only ever iterate to one node, that is, the root element of the document reader is reading.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hierarchicCursor

public static SMHierarchicCursor hierarchicCursor(javax.xml.stream.XMLStreamReader sr,
                                                  SMFilter f)

flatteningCursor

public static SMFlatteningCursor flatteningCursor(javax.xml.stream.XMLStreamReader sr,
                                                  SMFilter f)

rootElementCursor

public static SMHierarchicCursor rootElementCursor(javax.xml.stream.XMLStreamReader sr)
Return a nested cursor that will only ever iterate to one node, that is, the root element of the document reader is reading.


rootCursor

public static SMHierarchicCursor rootCursor(javax.xml.stream.XMLStreamReader sr)

getGlobalXMLInputFactory

public static javax.xml.stream.XMLInputFactory getGlobalXMLInputFactory()
                                                                 throws javax.xml.stream.XMLStreamException
Convenience method that will get a lazily constructed shared XMLInputFactory instance. Note that this instance should only be used IFF:

Throws:
javax.xml.stream.XMLStreamException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception