org.codehaus.staxmate
Class SMOutputFactory

java.lang.Object
  extended by 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.


Method Summary
static SMOutputDocument createOutputDocument(javax.xml.stream.XMLStreamWriter sw)
           
static SMOutputDocument createOutputDocument(javax.xml.stream.XMLStreamWriter sw, java.lang.String version, java.lang.String encoding, boolean standAlone)
           
static SMRootFragment createOutputFragment(javax.xml.stream.XMLStreamWriter sw)
           
static javax.xml.stream.XMLOutputFactory getGlobalXMLOutputFactory()
          Convenience method that will get a lazily constructed shared XMLOutputFactory instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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:

Throws:
javax.xml.stream.XMLStreamException