org.apache.axiom.util.stax.wrapper
Class WrappingXMLInputFactory

java.lang.Object
  extended by javax.xml.stream.XMLInputFactory
      extended by org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper
          extended by org.apache.axiom.util.stax.wrapper.WrappingXMLInputFactory
Direct Known Subclasses:
UnclosedReaderDetector, Woodstox4InputFactoryWrapper

public class WrappingXMLInputFactory
extends XMLInputFactoryWrapper

XMLInputFactory wrapper that wraps all XMLEventReader and XMLStreamReader instances created from it.


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
WrappingXMLInputFactory(XMLInputFactory parent)
          Constructor.
 
Method Summary
 XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter)
           
 XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter)
           
 XMLEventReader createXMLEventReader(InputStream stream)
           
 XMLEventReader createXMLEventReader(InputStream stream, String encoding)
           
 XMLEventReader createXMLEventReader(Reader reader)
           
 XMLEventReader createXMLEventReader(Source source)
           
 XMLEventReader createXMLEventReader(String systemId, InputStream stream)
           
 XMLEventReader createXMLEventReader(String systemId, Reader reader)
           
 XMLEventReader createXMLEventReader(XMLStreamReader reader)
           
 XMLStreamReader createXMLStreamReader(InputStream stream)
           
 XMLStreamReader createXMLStreamReader(InputStream stream, String encoding)
           
 XMLStreamReader createXMLStreamReader(Reader reader)
           
 XMLStreamReader createXMLStreamReader(Source source)
           
 XMLStreamReader createXMLStreamReader(String systemId, InputStream stream)
           
 XMLStreamReader createXMLStreamReader(String systemId, Reader reader)
           
protected  XMLEventReader wrap(XMLEventReader reader)
          Wrap a reader created from this factory.
protected  XMLStreamReader wrap(XMLStreamReader reader)
          Wrap a reader created from this factory.
 
Methods inherited from class org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper
getEventAllocator, getProperty, getXMLReporter, getXMLResolver, isPropertySupported, setEventAllocator, setProperty, setXMLReporter, setXMLResolver
 
Methods inherited from class javax.xml.stream.XMLInputFactory
newFactory, newFactory, newInstance, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappingXMLInputFactory

public WrappingXMLInputFactory(XMLInputFactory parent)
Constructor.

Parameters:
parent - the parent factory
Method Detail

wrap

protected XMLEventReader wrap(XMLEventReader reader)
Wrap a reader created from this factory. Implementations should override this method if they which to wrap XMLEventReader instances created from the factory. The default implementation simply returns the unwrapped reader.

Parameters:
reader - the reader to wrap
Returns:
the wrapped reader

wrap

protected XMLStreamReader wrap(XMLStreamReader reader)
Wrap a reader created from this factory. Implementations should override this method if they which to wrap XMLStreamReader instances created from the factory. The default implementation simply returns the unwrapped reader.

Parameters:
reader - the reader to wrap
Returns:
the wrapped reader

createFilteredReader

public XMLEventReader createFilteredReader(XMLEventReader reader,
                                           EventFilter filter)
                                    throws XMLStreamException
Overrides:
createFilteredReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createFilteredReader

public XMLStreamReader createFilteredReader(XMLStreamReader reader,
                                            StreamFilter filter)
                                     throws XMLStreamException
Overrides:
createFilteredReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLEventReader

public XMLEventReader createXMLEventReader(InputStream stream,
                                           String encoding)
                                    throws XMLStreamException
Overrides:
createXMLEventReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLEventReader

public XMLEventReader createXMLEventReader(InputStream stream)
                                    throws XMLStreamException
Overrides:
createXMLEventReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLEventReader

public XMLEventReader createXMLEventReader(Reader reader)
                                    throws XMLStreamException
Overrides:
createXMLEventReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLEventReader

public XMLEventReader createXMLEventReader(Source source)
                                    throws XMLStreamException
Overrides:
createXMLEventReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLEventReader

public XMLEventReader createXMLEventReader(String systemId,
                                           InputStream stream)
                                    throws XMLStreamException
Overrides:
createXMLEventReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLEventReader

public XMLEventReader createXMLEventReader(String systemId,
                                           Reader reader)
                                    throws XMLStreamException
Overrides:
createXMLEventReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLEventReader

public XMLEventReader createXMLEventReader(XMLStreamReader reader)
                                    throws XMLStreamException
Overrides:
createXMLEventReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLStreamReader

public XMLStreamReader createXMLStreamReader(InputStream stream,
                                             String encoding)
                                      throws XMLStreamException
Overrides:
createXMLStreamReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLStreamReader

public XMLStreamReader createXMLStreamReader(InputStream stream)
                                      throws XMLStreamException
Overrides:
createXMLStreamReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLStreamReader

public XMLStreamReader createXMLStreamReader(Reader reader)
                                      throws XMLStreamException
Overrides:
createXMLStreamReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLStreamReader

public XMLStreamReader createXMLStreamReader(Source source)
                                      throws XMLStreamException
Overrides:
createXMLStreamReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLStreamReader

public XMLStreamReader createXMLStreamReader(String systemId,
                                             InputStream stream)
                                      throws XMLStreamException
Overrides:
createXMLStreamReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException

createXMLStreamReader

public XMLStreamReader createXMLStreamReader(String systemId,
                                             Reader reader)
                                      throws XMLStreamException
Overrides:
createXMLStreamReader in class XMLInputFactoryWrapper
Throws:
XMLStreamException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.