Class WstxOutputFactory

  • All Implemented Interfaces:
    OutputConfigFlags, org.codehaus.stax2.XMLStreamProperties

    public class WstxOutputFactory
    extends org.codehaus.stax2.XMLOutputFactory2
    implements OutputConfigFlags
    Implementation of XMLOutputFactory for Wstx.

    TODO:

    • Implement outputter that creates SAX events (DOM-backed writer exists as of Woodstox 3.2)
    • Constructor Detail

      • WstxOutputFactory

        public WstxOutputFactory()
    • Method Detail

      • createXMLEventWriter

        public javax.xml.stream.XMLEventWriter createXMLEventWriter​(java.io.OutputStream out)
                                                             throws javax.xml.stream.XMLStreamException
        Specified by:
        createXMLEventWriter in class javax.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 class javax.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 class javax.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 class javax.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 class javax.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 class javax.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 class javax.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 class javax.xml.stream.XMLOutputFactory
        Throws:
        javax.xml.stream.XMLStreamException
      • getProperty

        public java.lang.Object getProperty​(java.lang.String name)
        Specified by:
        getProperty in class javax.xml.stream.XMLOutputFactory
      • isPropertySupported

        public boolean isPropertySupported​(java.lang.String name)
        Specified by:
        isPropertySupported in class javax.xml.stream.XMLOutputFactory
      • setProperty

        public void setProperty​(java.lang.String name,
                                java.lang.Object value)
        Specified by:
        setProperty in class javax.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 class org.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 class org.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 class org.codehaus.stax2.XMLOutputFactory2
        Throws:
        javax.xml.stream.XMLStreamException
      • configureForXmlConformance

        public void configureForXmlConformance()
        Specified by:
        configureForXmlConformance in class org.codehaus.stax2.XMLOutputFactory2
      • configureForRobustness

        public void configureForRobustness()
        Specified by:
        configureForRobustness in class org.codehaus.stax2.XMLOutputFactory2
      • configureForSpeed

        public void configureForSpeed()
        Specified by:
        configureForSpeed in class org.codehaus.stax2.XMLOutputFactory2
      • createSW

        private org.codehaus.stax2.XMLStreamWriter2 createSW​(java.io.OutputStream out,
                                                             java.io.Writer w,
                                                             java.lang.String enc,
                                                             boolean requireAutoClose)
                                                      throws javax.xml.stream.XMLStreamException
        Bottleneck factory method used internally; needs to take care of passing proper settings to stream writer.
        Parameters:
        requireAutoClose - Whether this result will always require auto-close be enabled (true); or only if application has requested it (false)
        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