public class WrappingXMLInputFactory extends XMLInputFactoryWrapper
XMLInputFactory
wrapper that wraps all XMLEventReader
and XMLStreamReader
instances created from it.ALLOCATOR, IS_COALESCING, IS_NAMESPACE_AWARE, IS_REPLACING_ENTITY_REFERENCES, IS_SUPPORTING_EXTERNAL_ENTITIES, IS_VALIDATING, REPORTER, RESOLVER, SUPPORT_DTD
Constructor and Description |
---|
WrappingXMLInputFactory(XMLInputFactory parent)
Constructor.
|
getEventAllocator, getProperty, getXMLReporter, getXMLResolver, isPropertySupported, setEventAllocator, setProperty, setXMLReporter, setXMLResolver
newFactory, newFactory, newInstance, newInstance
public WrappingXMLInputFactory(XMLInputFactory parent)
parent
- the parent factoryprotected XMLEventReader wrap(XMLEventReader reader)
XMLEventReader
instances created from the factory. The default
implementation simply returns the unwrapped reader.reader
- the reader to wrapprotected XMLStreamReader wrap(XMLStreamReader reader)
XMLStreamReader
instances created from the factory. The default
implementation simply returns the unwrapped reader.reader
- the reader to wrappublic XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter) throws XMLStreamException
createFilteredReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter) throws XMLStreamException
createFilteredReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLEventReader createXMLEventReader(InputStream stream, String encoding) throws XMLStreamException
createXMLEventReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLEventReader createXMLEventReader(InputStream stream) throws XMLStreamException
createXMLEventReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLEventReader createXMLEventReader(Reader reader) throws XMLStreamException
createXMLEventReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLEventReader createXMLEventReader(Source source) throws XMLStreamException
createXMLEventReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLEventReader createXMLEventReader(String systemId, InputStream stream) throws XMLStreamException
createXMLEventReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLEventReader createXMLEventReader(String systemId, Reader reader) throws XMLStreamException
createXMLEventReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLEventReader createXMLEventReader(XMLStreamReader reader) throws XMLStreamException
createXMLEventReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLStreamReader createXMLStreamReader(InputStream stream, String encoding) throws XMLStreamException
createXMLStreamReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLStreamReader createXMLStreamReader(InputStream stream) throws XMLStreamException
createXMLStreamReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException
createXMLStreamReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLStreamReader createXMLStreamReader(Source source) throws XMLStreamException
createXMLStreamReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLStreamReader createXMLStreamReader(String systemId, InputStream stream) throws XMLStreamException
createXMLStreamReader
in class XMLInputFactoryWrapper
XMLStreamException
public XMLStreamReader createXMLStreamReader(String systemId, Reader reader) throws XMLStreamException
createXMLStreamReader
in class XMLInputFactoryWrapper
XMLStreamException
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.