org.codehaus.staxmate
Class SMOutputFactory
java.lang.Object
org.codehaus.staxmate.SMOutputFactory
public final class SMOutputFactory
- extends java.lang.Object
Factory class used to create various outputter (like
SMOutputDocument and SMRootFragment) instances.
Factory also has convenience method(s) for accessing a shared
global instance of a default XMLOutputFactory.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createOutputDocument
public static SMOutputDocument createOutputDocument(javax.xml.stream.XMLStreamWriter sw)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
createOutputDocument
public static SMOutputDocument createOutputDocument(javax.xml.stream.XMLStreamWriter sw,
java.lang.String version,
java.lang.String encoding,
boolean standAlone)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
createOutputFragment
public static SMRootFragment createOutputFragment(javax.xml.stream.XMLStreamWriter sw)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
getGlobalXMLOutputFactory
public static javax.xml.stream.XMLOutputFactory getGlobalXMLOutputFactory()
throws javax.xml.stream.XMLStreamException
- Convenience method that will get a lazily constructed shared
XMLOutputFactory instance. Note that this instance
should only be used iff:
- Default settings (non-repairing) for the factory are acceptable
- Settings of the factory are not modified: thread-safety
of the factory instance is only guaranteed for factory methods,
not for configuration change methods
- Throws:
javax.xml.stream.XMLStreamException