Package com.fasterxml.aalto.stax
Class OutputFactoryImpl
- java.lang.Object
-
- javax.xml.stream.XMLOutputFactory
-
- org.codehaus.stax2.XMLOutputFactory2
-
- com.fasterxml.aalto.stax.OutputFactoryImpl
-
- All Implemented Interfaces:
org.codehaus.stax2.XMLStreamProperties
public final class OutputFactoryImpl extends org.codehaus.stax2.XMLOutputFactory2
Basic implementation ofXMLOutputFactory
.
-
-
Field Summary
Fields Modifier and Type Field Description protected WriterConfig
_config
-
Constructor Summary
Constructors Constructor Description OutputFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureForRobustness()
void
configureForSpeed()
void
configureForXmlConformance()
private org.codehaus.stax2.XMLStreamWriter2
createSW(java.io.OutputStream out, java.io.Writer w, java.lang.String enc, boolean forceAutoClose)
Bottleneck factory method used internally; needs to take care of passing proper settings to stream writer.private org.codehaus.stax2.XMLStreamWriter2
createSW(javax.xml.transform.Result res)
javax.xml.stream.XMLEventWriter
createXMLEventWriter(java.io.OutputStream out)
javax.xml.stream.XMLEventWriter
createXMLEventWriter(java.io.OutputStream out, java.lang.String enc)
javax.xml.stream.XMLEventWriter
createXMLEventWriter(java.io.Writer w)
javax.xml.stream.XMLEventWriter
createXMLEventWriter(java.io.Writer w, java.lang.String enc)
javax.xml.stream.XMLEventWriter
createXMLEventWriter(javax.xml.stream.XMLStreamWriter sw)
javax.xml.stream.XMLEventWriter
createXMLEventWriter(javax.xml.transform.Result result)
javax.xml.stream.XMLStreamWriter
createXMLStreamWriter(java.io.OutputStream out)
javax.xml.stream.XMLStreamWriter
createXMLStreamWriter(java.io.OutputStream out, java.lang.String enc)
javax.xml.stream.XMLStreamWriter
createXMLStreamWriter(java.io.Writer w)
org.codehaus.stax2.XMLStreamWriter2
createXMLStreamWriter(java.io.Writer w, java.lang.String enc)
javax.xml.stream.XMLStreamWriter
createXMLStreamWriter(javax.xml.transform.Result result)
java.lang.Object
getProperty(java.lang.String name)
boolean
isPropertySupported(java.lang.String name)
void
setProperty(java.lang.String name, java.lang.Object value)
-
-
-
Field Detail
-
_config
protected final WriterConfig _config
-
-
Method Detail
-
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream out) throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLEventWriter
in classjavax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
-
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream out, java.lang.String enc) throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLEventWriter
in classjavax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
-
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result) throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLEventWriter
in classjavax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
-
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer w) throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLEventWriter
in classjavax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
-
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream out) throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLStreamWriter
in classjavax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
-
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream out, java.lang.String enc) throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLStreamWriter
in classjavax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
-
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result) throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLStreamWriter
in classjavax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
-
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer w) throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLStreamWriter
in classjavax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getProperty
in classjavax.xml.stream.XMLOutputFactory
-
isPropertySupported
public boolean isPropertySupported(java.lang.String name)
- Specified by:
isPropertySupported
in classjavax.xml.stream.XMLOutputFactory
-
setProperty
public void setProperty(java.lang.String name, java.lang.Object value)
- Specified by:
setProperty
in classjavax.xml.stream.XMLOutputFactory
-
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer w, java.lang.String enc) throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLEventWriter
in classorg.codehaus.stax2.XMLOutputFactory2
- Throws:
javax.xml.stream.XMLStreamException
-
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.stream.XMLStreamWriter sw) throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLEventWriter
in classorg.codehaus.stax2.XMLOutputFactory2
- Throws:
javax.xml.stream.XMLStreamException
-
createXMLStreamWriter
public org.codehaus.stax2.XMLStreamWriter2 createXMLStreamWriter(java.io.Writer w, java.lang.String enc) throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLStreamWriter
in classorg.codehaus.stax2.XMLOutputFactory2
- Throws:
javax.xml.stream.XMLStreamException
-
configureForXmlConformance
public void configureForXmlConformance()
- Specified by:
configureForXmlConformance
in classorg.codehaus.stax2.XMLOutputFactory2
-
configureForRobustness
public void configureForRobustness()
- Specified by:
configureForRobustness
in classorg.codehaus.stax2.XMLOutputFactory2
-
configureForSpeed
public void configureForSpeed()
- Specified by:
configureForSpeed
in classorg.codehaus.stax2.XMLOutputFactory2
-
createSW
private org.codehaus.stax2.XMLStreamWriter2 createSW(java.io.OutputStream out, java.io.Writer w, java.lang.String enc, boolean forceAutoClose) throws javax.xml.stream.XMLStreamException
Bottleneck factory method used internally; needs to take care of passing proper settings to stream writer.- Parameters:
autoCloseOutput
- Whether writer should automatically close the output stream or Writer, when close() is called on stream writer.- Throws:
javax.xml.stream.XMLStreamException
-
createSW
private org.codehaus.stax2.XMLStreamWriter2 createSW(javax.xml.transform.Result res) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
-