Package javanet.staxutils
Class BaseXMLInputFactory
- java.lang.Object
-
- javax.xml.stream.XMLInputFactory
-
- javanet.staxutils.BaseXMLInputFactory
-
public abstract class BaseXMLInputFactory extends XMLInputFactory
- Version:
- $Revision: 1.2 $
- Author:
- Christian Niles
-
-
Field Summary
Fields Modifier and Type Field Description protected XMLEventAllocatoreventAllocatorprotected XMLReporterxmlReporterprotected XMLResolverxmlResolver-
Fields inherited from class javax.xml.stream.XMLInputFactory
ALLOCATOR, IS_COALESCING, IS_NAMESPACE_AWARE, IS_REPLACING_ENTITY_REFERENCES, IS_SUPPORTING_EXTERNAL_ENTITIES, IS_VALIDATING, REPORTER, RESOLVER, SUPPORT_DTD
-
-
Constructor Summary
Constructors Constructor Description BaseXMLInputFactory()
-
Method Summary
-
Methods inherited from class javax.xml.stream.XMLInputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
-
-
-
Field Detail
-
eventAllocator
protected XMLEventAllocator eventAllocator
-
xmlReporter
protected XMLReporter xmlReporter
-
xmlResolver
protected XMLResolver xmlResolver
-
-
Method Detail
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
- Specified by:
getPropertyin classXMLInputFactory- Throws:
IllegalArgumentException
-
isPropertySupported
public boolean isPropertySupported(String name)
- Specified by:
isPropertySupportedin classXMLInputFactory
-
setProperty
public void setProperty(String name, Object value) throws IllegalArgumentException
- Specified by:
setPropertyin classXMLInputFactory- Throws:
IllegalArgumentException
-
getEventAllocator
public XMLEventAllocator getEventAllocator()
- Specified by:
getEventAllocatorin classXMLInputFactory
-
setEventAllocator
public void setEventAllocator(XMLEventAllocator eventAllocator)
- Specified by:
setEventAllocatorin classXMLInputFactory
-
getXMLReporter
public XMLReporter getXMLReporter()
- Specified by:
getXMLReporterin classXMLInputFactory
-
setXMLReporter
public void setXMLReporter(XMLReporter xmlReporter)
- Specified by:
setXMLReporterin classXMLInputFactory
-
getXMLResolver
public XMLResolver getXMLResolver()
- Specified by:
getXMLResolverin classXMLInputFactory
-
setXMLResolver
public void setXMLResolver(XMLResolver xmlResolver)
- Specified by:
setXMLResolverin classXMLInputFactory
-
createXMLEventReader
public XMLEventReader createXMLEventReader(InputStream stream, String encoding) throws XMLStreamException
- Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(InputStream stream) throws XMLStreamException
- Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(String systemId, InputStream stream) throws XMLStreamException
- Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(XMLStreamReader reader) throws XMLStreamException
- Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(InputStream stream, String encoding) throws XMLStreamException
- Specified by:
createXMLStreamReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(InputStream stream) throws XMLStreamException
- Specified by:
createXMLStreamReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(String systemId, InputStream stream) throws XMLStreamException
- Specified by:
createXMLStreamReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(Reader reader) throws XMLStreamException
- Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(Reader reader, String encoding) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(Source source) throws XMLStreamException
- Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(String systemId, Reader reader) throws XMLStreamException
- Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(String systemId, Reader reader, String encoding) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(Source source) throws XMLStreamException
- Specified by:
createXMLStreamReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException
- Specified by:
createXMLStreamReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(Reader reader, String encoding) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(String systemId, Reader reader) throws XMLStreamException
- Specified by:
createXMLStreamReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createFilteredReader
public XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter) throws XMLStreamException
- Specified by:
createFilteredReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createFilteredReader
public XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter) throws XMLStreamException
- Specified by:
createFilteredReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLStreamReader
public abstract XMLStreamReader createXMLStreamReader(String systemId, Reader reader, String encoding) throws XMLStreamException
Called by all other methods to construct anXMLStreamReader.- Parameters:
systemId- The system ID of the provided reader, ornullreader- The character stream from which to construct the StAX stream.encoding- The underlying encoding of the reader, ornull.- Returns:
- The newly constructed
XMLStreamReader. - Throws:
XMLStreamException- If an error occurs constructing the reader.
-
-