Class XMLPullReaderFactory

    • Method Detail

      • getInstance

        public static XMLPullReaderFactory getInstance()
        Get instance of factory.
        Returns:
        factory instance
      • createReader

        public IXMLReader createReader​(InputStream is,
                                       String name,
                                       String enc,
                                       boolean nsf)
                                throws JiBXException
        Description copied from interface: IXMLReaderFactory
        Get new XML reader instance for document from input stream.
        Specified by:
        createReader in interface IXMLReaderFactory
        Parameters:
        is - document input stream
        name - document name (null if unknown)
        enc - document character encoding (null if unknown)
        nsf - namespaces enabled flag
        Returns:
        new reader instance for document
        Throws:
        JiBXException - on parser configuration error
      • createReader

        public IXMLReader createReader​(Reader rdr,
                                       String name,
                                       boolean nsf)
                                throws JiBXException
        Description copied from interface: IXMLReaderFactory
        Get new XML reader instance for document from reader.
        Specified by:
        createReader in interface IXMLReaderFactory
        Parameters:
        rdr - document reader
        name - document name (null if unknown)
        nsf - namespaces enabled flag
        Returns:
        new reader instance for document
        Throws:
        JiBXException - on parser configuration error
      • recycleReader

        public IXMLReader recycleReader​(IXMLReader old,
                                        InputStream is,
                                        String name,
                                        String enc)
                                 throws JiBXException
        Description copied from interface: IXMLReaderFactory
        Recycle XML reader instance for new document from input stream. If the supplied reader can be reused it will be configured for the new document and returned; otherwise, a new reader will be created for the document. The namespace enabled state of the returned reader is always the same as that of the supplied reader.
        Specified by:
        recycleReader in interface IXMLReaderFactory
        Parameters:
        old - reader instance to be recycled
        is - document input stream
        name - document name (null if unknown)
        enc - document character encoding (null if unknown)
        Returns:
        new reader instance for document
        Throws:
        JiBXException - on parser configuration error
      • recycleReader

        public IXMLReader recycleReader​(IXMLReader old,
                                        Reader rdr,
                                        String name)
                                 throws JiBXException
        Description copied from interface: IXMLReaderFactory
        Recycle XML reader instance for document from reader. If the supplied reader can be reused it will be configured for the new document and returned; otherwise, a new reader will be created for the document. The namespace enabled state of the returned reader is always the same as that of the supplied reader.
        Specified by:
        recycleReader in interface IXMLReaderFactory
        Parameters:
        old - reader instance to be recycled
        rdr - document reader
        name - document name (null if unknown)
        Returns:
        new reader instance for document
        Throws:
        JiBXException - on parser configuration error