Package org.codehaus.staxmate
Class SMOutputFactory.XmlFactoryAccessor
- java.lang.Object
-
- org.codehaus.staxmate.SMOutputFactory.XmlFactoryAccessor
-
- Enclosing class:
- SMOutputFactory
private static final class SMOutputFactory.XmlFactoryAccessor extends java.lang.Object
Separate helper class is used so that the shared factory instance is only created if needed: this happens if the accessor class needs to be instantiate, which in turn happens if the method for accessing the global output factory is called.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.xml.stream.XMLOutputFactory
mFactory
(package private) static SMOutputFactory.XmlFactoryAccessor
sInstance
-
Constructor Summary
Constructors Modifier Constructor Description private
XmlFactoryAccessor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.stream.XMLOutputFactory
get()
static javax.xml.stream.XMLOutputFactory
getFactory()
-
-
-
Field Detail
-
sInstance
static final SMOutputFactory.XmlFactoryAccessor sInstance
-
mFactory
javax.xml.stream.XMLOutputFactory mFactory
-
-
Method Detail
-
getFactory
public static javax.xml.stream.XMLOutputFactory getFactory() throws javax.xml.stream.FactoryConfigurationError
- Throws:
javax.xml.stream.FactoryConfigurationError
-
get
public javax.xml.stream.XMLOutputFactory get() throws javax.xml.stream.FactoryConfigurationError
- Throws:
javax.xml.stream.FactoryConfigurationError
-
-