Class XMLInputFactoryWrapper
- java.lang.Object
-
- javax.xml.stream.XMLInputFactory
-
- org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper
-
- Direct Known Subclasses:
ImmutableXMLInputFactory
,WrappingXMLInputFactory
public class XMLInputFactoryWrapper extends XMLInputFactory
Base class forXMLInputFactory
wrappers. The class provides default implementations for all methods. Each of them calls the corresponding method in the parent factory.
-
-
Field Summary
-
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 XMLInputFactoryWrapper(XMLInputFactory parent)
Constructor.
-
Method Summary
-
Methods inherited from class javax.xml.stream.XMLInputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
-
-
-
Constructor Detail
-
XMLInputFactoryWrapper
public XMLInputFactoryWrapper(XMLInputFactory parent)
Constructor.- Parameters:
parent
- the parent factory
-
-
Method Detail
-
createFilteredReader
public XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter) throws XMLStreamException
- Specified by:
createFilteredReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createFilteredReader
public XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter) throws XMLStreamException
- Specified by:
createFilteredReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(InputStream stream, String encoding) throws XMLStreamException
- Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(InputStream stream) throws XMLStreamException
- Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(Reader reader) throws XMLStreamException
- Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(Source source) throws XMLStreamException
- Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(String systemId, InputStream stream) throws XMLStreamException
- Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(String systemId, Reader reader) throws XMLStreamException
- Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(XMLStreamReader reader) throws XMLStreamException
- Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(InputStream stream, String encoding) throws XMLStreamException
- Specified by:
createXMLStreamReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(InputStream stream) throws XMLStreamException
- Specified by:
createXMLStreamReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException
- Specified by:
createXMLStreamReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(Source source) throws XMLStreamException
- Specified by:
createXMLStreamReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(String systemId, InputStream stream) throws XMLStreamException
- Specified by:
createXMLStreamReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(String systemId, Reader reader) throws XMLStreamException
- Specified by:
createXMLStreamReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
getEventAllocator
public XMLEventAllocator getEventAllocator()
- Specified by:
getEventAllocator
in classXMLInputFactory
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
- Specified by:
getProperty
in classXMLInputFactory
- Throws:
IllegalArgumentException
-
getXMLReporter
public XMLReporter getXMLReporter()
- Specified by:
getXMLReporter
in classXMLInputFactory
-
getXMLResolver
public XMLResolver getXMLResolver()
- Specified by:
getXMLResolver
in classXMLInputFactory
-
isPropertySupported
public boolean isPropertySupported(String name)
- Specified by:
isPropertySupported
in classXMLInputFactory
-
setEventAllocator
public void setEventAllocator(XMLEventAllocator allocator)
- Specified by:
setEventAllocator
in classXMLInputFactory
-
setProperty
public void setProperty(String name, Object value) throws IllegalArgumentException
- Specified by:
setProperty
in classXMLInputFactory
- Throws:
IllegalArgumentException
-
setXMLReporter
public void setXMLReporter(XMLReporter reporter)
- Specified by:
setXMLReporter
in classXMLInputFactory
-
setXMLResolver
public void setXMLResolver(XMLResolver resolver)
- Specified by:
setXMLResolver
in classXMLInputFactory
-
-