Class ImmutableXMLInputFactory
- java.lang.Object
-
- javax.xml.stream.XMLInputFactory
-
- org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper
-
- org.apache.axiom.util.stax.wrapper.ImmutableXMLInputFactory
-
public class ImmutableXMLInputFactory extends XMLInputFactoryWrapper
Wraps anXMLInputFactory
so that its state can no longer be changed. The state includes the properties as well as theXMLEventAllocator
,XMLReporter
andXMLResolver
instances configured on the 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 ImmutableXMLInputFactory(XMLInputFactory parent)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setEventAllocator(XMLEventAllocator allocator)
void
setProperty(String name, Object value)
void
setXMLReporter(XMLReporter reporter)
void
setXMLResolver(XMLResolver resolver)
-
Methods inherited from class org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper
createFilteredReader, createFilteredReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLEventReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, createXMLStreamReader, getEventAllocator, getProperty, getXMLReporter, getXMLResolver, isPropertySupported
-
Methods inherited from class javax.xml.stream.XMLInputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
-
-
-
Constructor Detail
-
ImmutableXMLInputFactory
public ImmutableXMLInputFactory(XMLInputFactory parent)
Constructor.- Parameters:
parent
- the parent factory
-
-
Method Detail
-
setEventAllocator
public void setEventAllocator(XMLEventAllocator allocator)
- Overrides:
setEventAllocator
in classXMLInputFactoryWrapper
-
setProperty
public void setProperty(String name, Object value) throws IllegalArgumentException
- Overrides:
setProperty
in classXMLInputFactoryWrapper
- Throws:
IllegalArgumentException
-
setXMLReporter
public void setXMLReporter(XMLReporter reporter)
- Overrides:
setXMLReporter
in classXMLInputFactoryWrapper
-
setXMLResolver
public void setXMLResolver(XMLResolver resolver)
- Overrides:
setXMLResolver
in classXMLInputFactoryWrapper
-
-