public class StAXInputFactory extends XMLInputFactory
ALLOCATOR, IS_COALESCING, IS_NAMESPACE_AWARE, IS_REPLACING_ENTITY_REFERENCES, IS_SUPPORTING_EXTERNAL_ENTITIES, IS_VALIDATING, REPORTER, RESOLVER, SUPPORT_DTD
Constructor and Description |
---|
StAXInputFactory() |
newFactory, newFactory, newInstance
public static XMLInputFactory newInstance()
public XMLStreamReader createXMLStreamReader(Reader xmlfile) throws XMLStreamException
createXMLStreamReader
in class XMLInputFactory
xmlfile
- the XML data to read fromXMLStreamException
public XMLStreamReader createXMLStreamReader(InputStream s) throws XMLStreamException
createXMLStreamReader
in class XMLInputFactory
XMLStreamException
public XMLStreamReader createXMLStreamReader(String systemId, Reader xmlfile) throws XMLStreamException
createXMLStreamReader
in class XMLInputFactory
XMLStreamException
public XMLStreamReader createXMLStreamReader(Source source) throws XMLStreamException
createXMLStreamReader
in class XMLInputFactory
XMLStreamException
public XMLStreamReader createXMLStreamReader(String systemId, InputStream inputstream) throws XMLStreamException
createXMLStreamReader
in class XMLInputFactory
XMLStreamException
public XMLStreamReader createXMLStreamReader(InputStream inputstream, String encoding) throws XMLStreamException
createXMLStreamReader
in class XMLInputFactory
XMLStreamException
public XMLEventReader createXMLEventReader(InputStream inputstream) throws XMLStreamException
createXMLEventReader
in class XMLInputFactory
inputstream
- XMLStreamException
public XMLEventReader createXMLEventReader(Reader reader) throws XMLStreamException
createXMLEventReader
in class XMLInputFactory
XMLStreamException
public XMLEventReader createXMLEventReader(Source source) throws XMLStreamException
createXMLEventReader
in class XMLInputFactory
XMLStreamException
public XMLEventReader createXMLEventReader(String systemId, InputStream inputstream) throws XMLStreamException
createXMLEventReader
in class XMLInputFactory
XMLStreamException
public XMLEventReader createXMLEventReader(InputStream stream, String encoding) throws XMLStreamException
createXMLEventReader
in class XMLInputFactory
XMLStreamException
public XMLEventReader createXMLEventReader(String systemId, Reader reader) throws XMLStreamException
createXMLEventReader
in class XMLInputFactory
XMLStreamException
public XMLEventReader createXMLEventReader(XMLStreamReader streamReader) throws XMLStreamException
createXMLEventReader
in class XMLInputFactory
streamReader
- the XMLStreamReader to read from (may not be modified)XMLStreamException
public XMLEventAllocator getEventAllocator()
getEventAllocator
in class XMLInputFactory
public XMLReporter getXMLReporter()
getXMLReporter
in class XMLInputFactory
public XMLResolver getXMLResolver()
getXMLResolver
in class XMLInputFactory
public void setXMLReporter(XMLReporter xmlreporter)
setXMLReporter
in class XMLInputFactory
public void setXMLResolver(XMLResolver xmlresolver)
setXMLResolver
in class XMLInputFactory
public XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter) throws XMLStreamException
createFilteredReader
in class XMLInputFactory
reader
- the event reader to wrapfilter
- the filter to apply to the event readerXMLStreamException
public XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter) throws XMLStreamException
createFilteredReader
in class XMLInputFactory
reader
- the reader to filterfilter
- the filter to apply to the readerXMLStreamException
public Object getProperty(String name) throws IllegalArgumentException
getProperty
in class XMLInputFactory
name
- The name of the property (may not be null)IllegalArgumentException
- if the property is not supportedpublic boolean isPropertySupported(String name)
isPropertySupported
in class XMLInputFactory
name
- The name of the property (may not be null)public void setEventAllocator(XMLEventAllocator allocator)
setEventAllocator
in class XMLInputFactory
allocator
- the user defined allocatorpublic void setProperty(String name, Object value) throws IllegalArgumentException
setProperty
in class XMLInputFactory
name
- The name of the property (may not be null)value
- The value of the propertyIllegalArgumentException
- if the property is not supportedCopyright © 2023 Oracle Corpration. All rights reserved.