Package javax.xml.stream
Class XMLInputFactory
- java.lang.Object
-
- javax.xml.stream.XMLInputFactory
-
public abstract class XMLInputFactory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringALLOCATORstatic StringIS_COALESCINGstatic StringIS_NAMESPACE_AWAREstatic StringIS_REPLACING_ENTITY_REFERENCESstatic StringIS_SUPPORTING_EXTERNAL_ENTITIESstatic StringIS_VALIDATINGstatic StringREPORTERstatic StringRESOLVERstatic StringSUPPORT_DTD
-
Constructor Summary
Constructors Modifier Constructor Description protectedXMLInputFactory()
-
Method Summary
-
-
-
Field Detail
-
IS_NAMESPACE_AWARE
public static final String IS_NAMESPACE_AWARE
- See Also:
- Constant Field Values
-
IS_VALIDATING
public static final String IS_VALIDATING
- See Also:
- Constant Field Values
-
IS_COALESCING
public static final String IS_COALESCING
- See Also:
- Constant Field Values
-
IS_REPLACING_ENTITY_REFERENCES
public static final String IS_REPLACING_ENTITY_REFERENCES
- See Also:
- Constant Field Values
-
IS_SUPPORTING_EXTERNAL_ENTITIES
public static final String IS_SUPPORTING_EXTERNAL_ENTITIES
- See Also:
- Constant Field Values
-
SUPPORT_DTD
public static final String SUPPORT_DTD
- See Also:
- Constant Field Values
-
REPORTER
public static final String REPORTER
- See Also:
- Constant Field Values
-
RESOLVER
public static final String RESOLVER
- See Also:
- Constant Field Values
-
ALLOCATOR
public static final String ALLOCATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
newDefaultFactory
public static XMLInputFactory newDefaultFactory()
-
newInstance
public static XMLInputFactory newInstance() throws FactoryConfigurationError
- Throws:
FactoryConfigurationError
-
newFactory
@Deprecated public static XMLInputFactory newFactory() throws FactoryConfigurationError
Deprecated.- Throws:
FactoryConfigurationError
-
newFactory
public static XMLInputFactory newFactory(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError
- Throws:
FactoryConfigurationError
-
newInstance
@Deprecated public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError
Deprecated.- Throws:
FactoryConfigurationError
-
createXMLStreamReader
public abstract XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLStreamReader
public abstract XMLStreamReader createXMLStreamReader(Source source) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLStreamReader
public abstract XMLStreamReader createXMLStreamReader(InputStream stream) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLStreamReader
public abstract XMLStreamReader createXMLStreamReader(InputStream stream, String encoding) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLStreamReader
public abstract XMLStreamReader createXMLStreamReader(String systemId, InputStream stream) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLStreamReader
public abstract XMLStreamReader createXMLStreamReader(String systemId, Reader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLEventReader
public abstract XMLEventReader createXMLEventReader(Reader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLEventReader
public abstract XMLEventReader createXMLEventReader(String systemId, Reader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLEventReader
public abstract XMLEventReader createXMLEventReader(XMLStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLEventReader
public abstract XMLEventReader createXMLEventReader(Source source) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLEventReader
public abstract XMLEventReader createXMLEventReader(InputStream stream) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLEventReader
public abstract XMLEventReader createXMLEventReader(InputStream stream, String encoding) throws XMLStreamException
- Throws:
XMLStreamException
-
createXMLEventReader
public abstract XMLEventReader createXMLEventReader(String systemId, InputStream stream) throws XMLStreamException
- Throws:
XMLStreamException
-
createFilteredReader
public abstract XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter) throws XMLStreamException
- Throws:
XMLStreamException
-
createFilteredReader
public abstract XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter) throws XMLStreamException
- Throws:
XMLStreamException
-
getXMLResolver
public abstract XMLResolver getXMLResolver()
-
setXMLResolver
public abstract void setXMLResolver(XMLResolver resolver)
-
getXMLReporter
public abstract XMLReporter getXMLReporter()
-
setXMLReporter
public abstract void setXMLReporter(XMLReporter reporter)
-
setProperty
public abstract void setProperty(String name, Object value) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
getProperty
public abstract Object getProperty(String name) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
isPropertySupported
public abstract boolean isPropertySupported(String name)
-
setEventAllocator
public abstract void setEventAllocator(XMLEventAllocator allocator)
-
getEventAllocator
public abstract XMLEventAllocator getEventAllocator()
-
-