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, newInstancepublic static XMLInputFactory newInstance()
public XMLStreamReader createXMLStreamReader(Reader xmlfile) throws XMLStreamException
createXMLStreamReader in class XMLInputFactoryxmlfile - the XML data to read fromXMLStreamExceptionpublic XMLStreamReader createXMLStreamReader(InputStream s) throws XMLStreamException
createXMLStreamReader in class XMLInputFactoryXMLStreamExceptionpublic XMLStreamReader createXMLStreamReader(String systemId, Reader xmlfile) throws XMLStreamException
createXMLStreamReader in class XMLInputFactoryXMLStreamExceptionpublic XMLStreamReader createXMLStreamReader(Source source) throws XMLStreamException
createXMLStreamReader in class XMLInputFactoryXMLStreamExceptionpublic XMLStreamReader createXMLStreamReader(String systemId, InputStream inputstream) throws XMLStreamException
createXMLStreamReader in class XMLInputFactoryXMLStreamExceptionpublic XMLStreamReader createXMLStreamReader(InputStream inputstream, String encoding) throws XMLStreamException
createXMLStreamReader in class XMLInputFactoryXMLStreamExceptionpublic XMLEventReader createXMLEventReader(InputStream inputstream) throws XMLStreamException
createXMLEventReader in class XMLInputFactoryinputstream - XMLStreamExceptionpublic XMLEventReader createXMLEventReader(Reader reader) throws XMLStreamException
createXMLEventReader in class XMLInputFactoryXMLStreamExceptionpublic XMLEventReader createXMLEventReader(Source source) throws XMLStreamException
createXMLEventReader in class XMLInputFactoryXMLStreamExceptionpublic XMLEventReader createXMLEventReader(String systemId, InputStream inputstream) throws XMLStreamException
createXMLEventReader in class XMLInputFactoryXMLStreamExceptionpublic XMLEventReader createXMLEventReader(InputStream stream, String encoding) throws XMLStreamException
createXMLEventReader in class XMLInputFactoryXMLStreamExceptionpublic XMLEventReader createXMLEventReader(String systemId, Reader reader) throws XMLStreamException
createXMLEventReader in class XMLInputFactoryXMLStreamExceptionpublic XMLEventReader createXMLEventReader(XMLStreamReader streamReader) throws XMLStreamException
createXMLEventReader in class XMLInputFactorystreamReader - the XMLStreamReader to read from (may not be modified)XMLStreamExceptionpublic XMLEventAllocator getEventAllocator()
getEventAllocator in class XMLInputFactorypublic XMLReporter getXMLReporter()
getXMLReporter in class XMLInputFactorypublic XMLResolver getXMLResolver()
getXMLResolver in class XMLInputFactorypublic void setXMLReporter(XMLReporter xmlreporter)
setXMLReporter in class XMLInputFactorypublic void setXMLResolver(XMLResolver xmlresolver)
setXMLResolver in class XMLInputFactorypublic XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter) throws XMLStreamException
createFilteredReader in class XMLInputFactoryreader - the event reader to wrapfilter - the filter to apply to the event readerXMLStreamExceptionpublic XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter) throws XMLStreamException
createFilteredReader in class XMLInputFactoryreader - the reader to filterfilter - the filter to apply to the readerXMLStreamExceptionpublic Object getProperty(String name) throws IllegalArgumentException
getProperty in class XMLInputFactoryname - The name of the property (may not be null)IllegalArgumentException - if the property is not supportedpublic boolean isPropertySupported(String name)
isPropertySupported in class XMLInputFactoryname - The name of the property (may not be null)public void setEventAllocator(XMLEventAllocator allocator)
setEventAllocator in class XMLInputFactoryallocator - the user defined allocatorpublic void setProperty(String name, Object value) throws IllegalArgumentException
setProperty in class XMLInputFactoryname - The name of the property (may not be null)value - The value of the propertyIllegalArgumentException - if the property is not supportedCopyright © 2005–2017 Oracle Corporation. All rights reserved.