public class StAXInputFactory extends 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 and Description |
---|
StAXInputFactory() |
newFactory, newFactory, newInstance
public static javax.xml.stream.XMLInputFactory newInstance()
public javax.xml.stream.XMLStreamReader createXMLStreamReader(Reader xmlfile) throws javax.xml.stream.XMLStreamException
createXMLStreamReader
in class javax.xml.stream.XMLInputFactory
xmlfile
- the XML data to read fromjavax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamReader createXMLStreamReader(InputStream s) throws javax.xml.stream.XMLStreamException
createXMLStreamReader
in class javax.xml.stream.XMLInputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamReader createXMLStreamReader(String systemId, Reader xmlfile) throws javax.xml.stream.XMLStreamException
createXMLStreamReader
in class javax.xml.stream.XMLInputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamReader createXMLStreamReader(Source source) throws javax.xml.stream.XMLStreamException
createXMLStreamReader
in class javax.xml.stream.XMLInputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamReader createXMLStreamReader(String systemId, InputStream inputstream) throws javax.xml.stream.XMLStreamException
createXMLStreamReader
in class javax.xml.stream.XMLInputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamReader createXMLStreamReader(InputStream inputstream, String encoding) throws javax.xml.stream.XMLStreamException
createXMLStreamReader
in class javax.xml.stream.XMLInputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(InputStream inputstream) throws javax.xml.stream.XMLStreamException
createXMLEventReader
in class javax.xml.stream.XMLInputFactory
inputstream
- javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(Reader reader) throws javax.xml.stream.XMLStreamException
createXMLEventReader
in class javax.xml.stream.XMLInputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(Source source) throws javax.xml.stream.XMLStreamException
createXMLEventReader
in class javax.xml.stream.XMLInputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(String systemId, InputStream inputstream) throws javax.xml.stream.XMLStreamException
createXMLEventReader
in class javax.xml.stream.XMLInputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(InputStream stream, String encoding) throws javax.xml.stream.XMLStreamException
createXMLEventReader
in class javax.xml.stream.XMLInputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(String systemId, Reader reader) throws javax.xml.stream.XMLStreamException
createXMLEventReader
in class javax.xml.stream.XMLInputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(javax.xml.stream.XMLStreamReader streamReader) throws javax.xml.stream.XMLStreamException
createXMLEventReader
in class javax.xml.stream.XMLInputFactory
streamReader
- the XMLStreamReader to read from (may not be modified)javax.xml.stream.XMLStreamException
public javax.xml.stream.util.XMLEventAllocator getEventAllocator()
getEventAllocator
in class javax.xml.stream.XMLInputFactory
public javax.xml.stream.XMLReporter getXMLReporter()
getXMLReporter
in class javax.xml.stream.XMLInputFactory
public javax.xml.stream.XMLResolver getXMLResolver()
getXMLResolver
in class javax.xml.stream.XMLInputFactory
public void setXMLReporter(javax.xml.stream.XMLReporter xmlreporter)
setXMLReporter
in class javax.xml.stream.XMLInputFactory
public void setXMLResolver(javax.xml.stream.XMLResolver xmlresolver)
setXMLResolver
in class javax.xml.stream.XMLInputFactory
public javax.xml.stream.XMLEventReader createFilteredReader(javax.xml.stream.XMLEventReader reader, javax.xml.stream.EventFilter filter) throws javax.xml.stream.XMLStreamException
createFilteredReader
in class javax.xml.stream.XMLInputFactory
reader
- the event reader to wrapfilter
- the filter to apply to the event readerjavax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamReader createFilteredReader(javax.xml.stream.XMLStreamReader reader, javax.xml.stream.StreamFilter filter) throws javax.xml.stream.XMLStreamException
createFilteredReader
in class javax.xml.stream.XMLInputFactory
reader
- the reader to filterfilter
- the filter to apply to the readerjavax.xml.stream.XMLStreamException
public Object getProperty(String name) throws IllegalArgumentException
getProperty
in class javax.xml.stream.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 javax.xml.stream.XMLInputFactory
name
- The name of the property (may not be null)public void setEventAllocator(javax.xml.stream.util.XMLEventAllocator allocator)
setEventAllocator
in class javax.xml.stream.XMLInputFactory
allocator
- the user defined allocatorpublic void setProperty(String name, Object value) throws IllegalArgumentException
setProperty
in class javax.xml.stream.XMLInputFactory
name
- The name of the property (may not be null)value
- The value of the propertyIllegalArgumentException
- if the property is not supportedCopyright © 2013 Oracle Corpration. All rights reserved.