Class OutputFactoryImpl

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

    public final class OutputFactoryImpl
    extends org.codehaus.stax2.XMLOutputFactory2
    Basic implementation of XMLOutputFactory.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected WriterConfig _config  
      • Fields inherited from class org.codehaus.stax2.XMLOutputFactory2

        P_ATTR_VALUE_ESCAPER, P_AUTO_CLOSE_OUTPUT, P_AUTOMATIC_EMPTY_ELEMENTS, P_AUTOMATIC_NS_PREFIX, P_TEXT_ESCAPER
      • Fields inherited from class javax.xml.stream.XMLOutputFactory

        IS_REPAIRING_NAMESPACES
      • Fields inherited from interface org.codehaus.stax2.XMLStreamProperties

        XSP_IMPLEMENTATION_NAME, XSP_IMPLEMENTATION_VERSION, XSP_NAMESPACE_AWARE, XSP_PROBLEM_REPORTER, XSP_SUPPORT_XMLID, XSP_SUPPORTS_XML11, XSP_V_XMLID_FULL, XSP_V_XMLID_NONE, XSP_V_XMLID_TYPING
    • 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)  
      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)  
      • Methods inherited from class javax.xml.stream.XMLOutputFactory

        newDefaultFactory, newFactory, newFactory, newInstance, newInstance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OutputFactoryImpl

        public OutputFactoryImpl()
    • 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 forceAutoClose)
                                                      throws javax.xml.stream.XMLStreamException
        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