Class StaxDriver

    • Field Detail

      • inputFactory

        private javax.xml.stream.XMLInputFactory inputFactory
      • outputFactory

        private javax.xml.stream.XMLOutputFactory outputFactory
    • Method Detail

      • createReader

        public HierarchicalStreamReader createReader​(java.io.Reader xml)
        Description copied from interface: HierarchicalStreamDriver
        Create the HierarchicalStreamReader with the stream parser reading from the IO reader.
        Parameters:
        xml - the Reader with the data to parse
        Returns:
        the HierarchicalStreamReader
      • createReader

        public HierarchicalStreamReader createReader​(java.io.InputStream in)
        Description copied from interface: HierarchicalStreamDriver
        Create the HierarchicalStreamReader with the stream parser reading from the input stream.
        Parameters:
        in - the InputStream with the data to parse
      • createReader

        public HierarchicalStreamReader createReader​(java.net.URL in)
        Description copied from class: AbstractDriver
        Create the HierarchicalStreamReader with the stream parser reading from a URL. Depending on the parser implementation, some might take the URL as SystemId to resolve additional references.
        Specified by:
        createReader in interface HierarchicalStreamDriver
        Overrides:
        createReader in class AbstractDriver
        Parameters:
        in - the URL defining the location with the data to parse
        Returns:
        the HierarchicalStreamReader
      • createReader

        public HierarchicalStreamReader createReader​(java.io.File in)
        Description copied from class: AbstractDriver
        Create the HierarchicalStreamReader with the stream parser reading from a File. Depending on the parser implementation, some might take the file path as SystemId to resolve additional references.
        Specified by:
        createReader in interface HierarchicalStreamDriver
        Overrides:
        createReader in class AbstractDriver
        Parameters:
        in - the URL defining the location with the data to parse
        Returns:
        the HierarchicalStreamReader
      • createWriter

        public HierarchicalStreamWriter createWriter​(java.io.Writer out)
        Description copied from interface: HierarchicalStreamDriver
        Create the HierarchicalStreamWriter with the formatted writer.
        Parameters:
        out - the Writer to receive the formatted data
        Returns:
        the HierarchicalStreamWriter
      • createWriter

        public HierarchicalStreamWriter createWriter​(java.io.OutputStream out)
        Description copied from interface: HierarchicalStreamDriver
        Create the HierarchicalStreamWriter with the formatted writer.
        Parameters:
        out - the OutputStream to receive the formatted data
        Returns:
        the HierarchicalStreamWriter
      • createStaxReader

        public AbstractPullReader createStaxReader​(javax.xml.stream.XMLStreamReader in)
      • createStaxWriter

        public StaxWriter createStaxWriter​(javax.xml.stream.XMLStreamWriter out,
                                           boolean writeStartEndDocument)
                                    throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • createStaxWriter

        public StaxWriter createStaxWriter​(javax.xml.stream.XMLStreamWriter out)
                                    throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • getQnameMap

        public QNameMap getQnameMap()
      • setQnameMap

        public void setQnameMap​(QNameMap qnameMap)
      • getInputFactory

        public javax.xml.stream.XMLInputFactory getInputFactory()
      • getOutputFactory

        public javax.xml.stream.XMLOutputFactory getOutputFactory()
      • isRepairingNamespace

        public boolean isRepairingNamespace()
      • setRepairingNamespace

        public void setRepairingNamespace​(boolean repairing)
        Since:
        1.2
      • createParser

        protected javax.xml.stream.XMLStreamReader createParser​(java.io.Reader xml)
                                                         throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • createParser

        protected javax.xml.stream.XMLStreamReader createParser​(java.io.InputStream xml)
                                                         throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • createParser

        protected javax.xml.stream.XMLStreamReader createParser​(javax.xml.transform.Source source)
                                                         throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • createInputFactory

        protected javax.xml.stream.XMLInputFactory createInputFactory()
        Since:
        1.4
      • createOutputFactory

        protected javax.xml.stream.XMLOutputFactory createOutputFactory()
        Since:
        1.4