| org.jibx.runtime.impl.IXMLReaderFactory
All known Subclasses: org.jibx.runtime.impl.XMLPullReaderFactory, org.jibx.runtime.impl.StAXReaderFactory,
IXMLReaderFactory | public interface IXMLReaderFactory (Code) | | Interface for factories used to create XML reader instances. Instances of
this interface must be assumed to be single threaded.
author: Dennis M. Sosnoski version: 1.0 |
Method Summary | |
public IXMLReader | createReader(InputStream is, String name, String enc, boolean nsf) Get new XML reader instance for document from input stream. | public IXMLReader | createReader(Reader rdr, String name, boolean nsf) Get new XML reader instance for document from reader. | public IXMLReader | recycleReader(IXMLReader old, InputStream is, String name, String enc) Recycle XML reader instance for new document from input stream. | public IXMLReader | recycleReader(IXMLReader old, Reader rdr, String name) Recycle XML reader instance for document from reader. |
createReader | public IXMLReader createReader(InputStream is, String name, String enc, boolean nsf) throws JiBXException(Code) | | Get new XML reader instance for document from input stream.
Parameters: is - document input stream Parameters: name - document name (null if unknown) Parameters: enc - document character encoding (null if unknown) Parameters: nsf - namespaces enabled flag new reader instance for document throws: JiBXException - on parser configuration error |
createReader | public IXMLReader createReader(Reader rdr, String name, boolean nsf) throws JiBXException(Code) | | Get new XML reader instance for document from reader.
Parameters: rdr - document reader Parameters: name - document name (null if unknown) Parameters: nsf - namespaces enabled flag 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(Code) | | 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.
Parameters: old - reader instance to be recycled Parameters: is - document input stream Parameters: name - document name (null if unknown) Parameters: enc - document character encoding (null if unknown) new reader instance for document throws: JiBXException - on parser configuration error |
recycleReader | public IXMLReader recycleReader(IXMLReader old, Reader rdr, String name) throws JiBXException(Code) | | 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.
Parameters: old - reader instance to be recycled Parameters: rdr - document reader Parameters: name - document name (null if unknown) new reader instance for document throws: JiBXException - on parser configuration error |
|
|