| Property Name | Behavior | Return type | Default Value | Required |
|---|---|---|---|---|
| javax.xml.stream.isValidating | Turns on/off implementation specific DTD validation | Boolean | False | No |
| javax.xml.stream.isNamespaceAware | Turns on/off namespace processing for XML 1.0 support | Boolean | True | True (required) / False (optional) |
| javax.xml.stream.isCoalescing | Requires the processor to coalesce adjacent character data | Boolean | False | Yes |
| javax.xml.stream.isReplacingEntityReferences | replace internal entity references with their replacement text and report them as characters | Boolean | True | Yes |
| javax.xml.stream.isSupportingExternalEntities | Resolve external parsed entities | Boolean | Unspecified | Yes |
| javax.xml.stream.supportDTD | Use this property to request processors that do not support DTDs | Boolean | True | Yes |
| javax.xml.stream.reporter | sets/gets the impl of the XMLReporter | javax.xml.stream.XMLReporter | Null | Yes |
| javax.xml.stream.resolver | sets/gets the impl of the XMLResolver interface | javax.xml.stream.XMLResolver | Null | Yes |
| javax.xml.stream.allocator | sets/gets the impl of the XMLEventAllocator interface | javax.xml.stream.util.XMLEventAllocator | Null | Yes |
XMLOutputFactory, XMLEventReader, XMLStreamReader, EventFilter, XMLReporter, XMLResolver, javax.xml.stream.util.XMLEventAllocator
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ALLOCATOR
The property used to set/get the implementation of the allocator |
| pack-priv static final String | |
| public static final String | IS_COALESCING
The property that requires the parser to coalesce adjacent character data sections |
| public static final String | IS_NAMESPACE_AWARE
The property used to turn on/off namespace support, this is to support XML 1.0 documents, only the true setting must be supported |
| public static final String | IS_REPLACING_ENTITY_REFERENCES
Requires the parser to replace internal entity references with their replacement text and report them as characters |
| public static final String | IS_SUPPORTING_EXTERNAL_ENTITIES
The property that requires the parser to resolve external parsed entities |
| public static final String | IS_VALIDATING
The property used to turn on/off implementation specific validation |
| public static final String | REPORTER
The property used to set/get the implementation of the XMLReporter interface |
| public static final String | RESOLVER
The property used to set/get the implementation of the XMLResolver |
| public static final String | SUPPORT_DTD
The property that requires the parser to support DTDs |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract XMLStreamReader | Returns: an instance of theXMLEventReaderthe reader to filter reader, StreamFilter the filter to apply to the reader filter)Create a filtered reader that wraps the filter around the reader |
| public abstract XMLEventReader | Returns: an instance of theXMLEventReaderthe event reader to wrap reader, EventFilter the filter to apply to the event reader filter)Create a filtered event reader that wraps the filter around the event reader |
| public abstract XMLEventReader | Returns: an instance of theXMLEventReaderthe XML data to read from reader)Create a new XMLEventReader from a reader. |
| public abstract XMLEventReader | Returns: an instance of theXMLEventReaderthe system ID of the input systemId, Reader the XML data to read from reader)Create a new XMLEventReader from a reader. |
| public abstract XMLEventReader | Returns: a new XMLEventReaderthe XMLStreamReader to read from (may not be modified) reader)Create a new XMLEventReader from an XMLStreamReader. |
| public abstract XMLEventReader | Returns: an instance of theXMLEventReaderthe source to read from source)Create a new XMLEventReader from a JAXP source. |
| public abstract XMLEventReader | Returns: an instance of theXMLEventReaderthe InputStream to read from stream)Create a new XMLEventReader from a java.io.InputStream |
| public abstract XMLEventReader | Returns: an instance of theXMLEventReaderthe InputStream to read from stream, String the character encoding of the stream encoding)Create a new XMLEventReader from a java.io.InputStream |
| public abstract XMLEventReader | Returns: an instance of theXMLEventReaderthe system ID of the stream systemId, InputStream the InputStream to read from stream)Create a new XMLEventReader from a java.io.InputStream |
| public abstract XMLStreamReader | Returns: an instance of theXMLStreamReaderthe XML data to read from reader)Create a new XMLStreamReader from a reader. |
| public abstract XMLStreamReader | Returns: an instance of theXMLStreamReaderthe source to read from source)Create a new XMLStreamReader from a JAXP source. |
| public abstract XMLStreamReader | Returns: an instance of theXMLStreamReaderthe InputStream to read from stream)Create a new XMLStreamReader from a java.io.InputStream. |
| public abstract XMLStreamReader | Returns: an instance of theXMLStreamReaderthe InputStream to read from stream, String the character encoding of the stream encoding)Create a new XMLStreamReader from a java.io.InputStream. |
| public abstract XMLStreamReader | Returns: an instance of theXMLStreamReaderthe system ID of the stream systemId, InputStream the InputStream to read from stream)Create a new XMLStreamReader from a java.io.InputStream. |
| public abstract XMLStreamReader | Returns: an instance of theXMLStreamReaderthe system ID of the stream systemId, Reader the InputStream to read from reader)Create a new XMLStreamReader from a java.io.InputStream. |
| public abstract XMLEventAllocator | Returns: an instance of theXMLEventAllocatorGets the allocator used by streams created with this factory |
| public abstract Object | Returns: The value of the propertyThe name of the property (may not be null) name)Get the value of a feature/property from the underlying implementation |
| public abstract XMLReporter | Returns: an instance of theXMLReporterThe reporter that will be set on any XMLStreamReader or XMLEventReader created by this factory instance. |
| public abstract XMLResolver | Returns: an instance of theXMLResolverThe resolver that will be set on any XMLStreamReader or XMLEventReader created by this factory instance. |
| public abstract boolean | Returns: true if the property is supported and false otherwiseThe name of the property (may not be null) name)Query the set of properties that this factory supports. |
| public static XMLInputFactory | Returns: A new instance of theXMLInputFactory builtin
system-default implementation.Creates a new instance of the |
| public static XMLInputFactory | |
| public static XMLInputFactory | Returns: the factory implementationName of the factory to find, same as
a property name factoryId, ClassLoader classLoader to use classLoader)Create a new instance of the factory. |
| public static XMLInputFactory | Returns: an instance of theXMLInputFactoryCreates a new instance of the factory in exactly the same manner as the
|
| public static XMLInputFactory | Returns: the factory implementationName of the factory to find, same as
a property name factoryId, ClassLoader classLoader to use classLoader)
Deprecated
since 1.7. This method has been deprecated to maintain API consistency.
Create a new instance of the factory. |
| public abstract void | setEventAllocator(XMLEventAllocator
the user defined allocator allocator)Set a user defined event allocator for events |
| public abstract void | setProperty(String
The name of the property (may not be null) name, Object The value of the property value)Allows the user to set specific feature/property on the underlying implementation. |
| public abstract void | setXMLReporter(XMLReporter
the resolver to use to report non fatal errors reporter)The reporter that will be set on any XMLStreamReader or XMLEventReader created by this factory instance. |
| public abstract void | setXMLResolver(XMLResolver
the resolver to use to resolve references resolver)The resolver that will be set on any XMLStreamReader or XMLEventReader created by this factory instance. |
| ALLOCATOR | back to summary |
|---|---|
| public static final String ALLOCATOR The property used to set/get the implementation of the allocator | |
| DEFAULIMPL | back to summary |
|---|---|
| pack-priv static final String DEFAULIMPL | |
| IS_COALESCING | back to summary |
|---|---|
| public static final String IS_COALESCING The property that requires the parser to coalesce adjacent character data sections | |
| IS_NAMESPACE_AWARE | back to summary |
|---|---|
| public static final String IS_NAMESPACE_AWARE The property used to turn on/off namespace support, this is to support XML 1.0 documents, only the true setting must be supported | |
| IS_REPLACING_ENTITY_REFERENCES | back to summary |
|---|---|
| public static final String IS_REPLACING_ENTITY_REFERENCES Requires the parser to replace internal entity references with their replacement text and report them as characters | |
| IS_SUPPORTING_EXTERNAL_ENTITIES | back to summary |
|---|---|
| public static final String IS_SUPPORTING_EXTERNAL_ENTITIES The property that requires the parser to resolve external parsed entities | |
| IS_VALIDATING | back to summary |
|---|---|
| public static final String IS_VALIDATING The property used to turn on/off implementation specific validation | |
| REPORTER | back to summary |
|---|---|
| public static final String REPORTER The property used to set/get the implementation of the XMLReporter interface | |
| RESOLVER | back to summary |
|---|---|
| public static final String RESOLVER The property used to set/get the implementation of the XMLResolver | |
| SUPPORT_DTD | back to summary |
|---|---|
| public static final String SUPPORT_DTD The property that requires the parser to support DTDs | |
| XMLInputFactory | back to summary |
|---|---|
| protected XMLInputFactory() Protected constructor to prevent instantiation.
Use | |
| createFilteredReader | back to summary |
|---|---|
| public abstract XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter) throws XMLStreamException Create a filtered reader that wraps the filter around the reader
| |
| createFilteredReader | back to summary |
|---|---|
| public abstract XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter) throws XMLStreamException Create a filtered event reader that wraps the filter around the event reader
| |
| createXMLEventReader | back to summary |
|---|---|
| public abstract XMLEventReader createXMLEventReader(Reader reader) throws XMLStreamException Create a new XMLEventReader from a reader.
| |
| createXMLEventReader | back to summary |
|---|---|
| public abstract XMLEventReader createXMLEventReader(String systemId, Reader reader) throws XMLStreamException Create a new XMLEventReader from a reader.
| |
| createXMLEventReader | back to summary |
|---|---|
| public abstract XMLEventReader createXMLEventReader(XMLStreamReader reader) throws XMLStreamException Create a new XMLEventReader from an XMLStreamReader. After being used to construct the XMLEventReader instance returned from this method the XMLStreamReader must not be used.
| |
| createXMLEventReader | back to summary |
|---|---|
| public abstract XMLEventReader createXMLEventReader(Source source) throws XMLStreamException Create a new XMLEventReader from a JAXP source. Support of this method is optional.
| |
| createXMLEventReader | back to summary |
|---|---|
| public abstract XMLEventReader createXMLEventReader(InputStream stream) throws XMLStreamException Create a new XMLEventReader from a java.io.InputStream
| |
| createXMLEventReader | back to summary |
|---|---|
| public abstract XMLEventReader createXMLEventReader(InputStream stream, String encoding) throws XMLStreamException Create a new XMLEventReader from a java.io.InputStream
| |
| createXMLEventReader | back to summary |
|---|---|
| public abstract XMLEventReader createXMLEventReader(String systemId, InputStream stream) throws XMLStreamException Create a new XMLEventReader from a java.io.InputStream
| |
| createXMLStreamReader | back to summary |
|---|---|
| public abstract XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException Create a new XMLStreamReader from a reader.
| |
| createXMLStreamReader | back to summary |
|---|---|
| public abstract XMLStreamReader createXMLStreamReader(Source source) throws XMLStreamException Create a new XMLStreamReader from a JAXP source. This method is optional.
| |
| createXMLStreamReader | back to summary |
|---|---|
| public abstract XMLStreamReader createXMLStreamReader(InputStream stream) throws XMLStreamException Create a new XMLStreamReader from a java.io.InputStream.
| |
| createXMLStreamReader | back to summary |
|---|---|
| public abstract XMLStreamReader createXMLStreamReader(InputStream stream, String encoding) throws XMLStreamException Create a new XMLStreamReader from a java.io.InputStream.
| |
| createXMLStreamReader | back to summary |
|---|---|
| public abstract XMLStreamReader createXMLStreamReader(String systemId, InputStream stream) throws XMLStreamException Create a new XMLStreamReader from a java.io.InputStream.
| |
| createXMLStreamReader | back to summary |
|---|---|
| public abstract XMLStreamReader createXMLStreamReader(String systemId, Reader reader) throws XMLStreamException Create a new XMLStreamReader from a java.io.InputStream.
| |
| getEventAllocator | back to summary |
|---|---|
| public abstract XMLEventAllocator getEventAllocator() Gets the allocator used by streams created with this factory
| |
| getProperty | back to summary |
|---|---|
| public abstract Object getProperty(String name) throws IllegalArgumentException Get the value of a feature/property from the underlying implementation
| |
| getXMLReporter | back to summary |
|---|---|
| public abstract XMLReporter getXMLReporter() The reporter that will be set on any XMLStreamReader or XMLEventReader created by this factory instance.
| |
| getXMLResolver | back to summary |
|---|---|
| public abstract XMLResolver getXMLResolver() The resolver that will be set on any XMLStreamReader or XMLEventReader created by this factory instance.
| |
| isPropertySupported | back to summary |
|---|---|
| public abstract boolean isPropertySupported(String name) Query the set of properties that this factory supports.
| |
| newDefaultFactory | back to summary |
|---|---|
| public static XMLInputFactory newDefaultFactory() Creates a new instance of the
| |
| newFactory | back to summary |
|---|---|
| public static XMLInputFactory newFactory() throws FactoryConfigurationError Creates a new instance of the factory. This method uses the
JAXP Lookup Mechanism
to determine the
Once an application has obtained a reference to a
| |
| newFactory | back to summary |
|---|---|
| public static XMLInputFactory newFactory(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError Create a new instance of the factory. If the classLoader argument is null, then the ContextClassLoader is used. This method uses the following ordered lookup procedure to determine the XMLInputFactory implementation class to load:
Note that this is a new method that replaces the deprecated
API Note The parameter factoryId defined here is inconsistent with that of other JAXP factories where the first parameter is fully qualified factory class name that provides implementation of the factory.
| |
| newInstance | back to summary |
|---|---|
| public static XMLInputFactory newInstance() throws FactoryConfigurationError Creates a new instance of the factory in exactly the same manner as the
| |
| newInstance | back to summary |
|---|---|
| public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError
Deprecated since 1.7. This method has been deprecated to maintain API consistency.
All newInstance methods have been replaced with corresponding
newFactory methods. The replacement Create a new instance of the factory.
| |
| setEventAllocator | back to summary |
|---|---|
| public abstract void setEventAllocator(XMLEventAllocator allocator) Set a user defined event allocator for events
| |
| setProperty | back to summary |
|---|---|
| public abstract void setProperty(String name, Object value) throws IllegalArgumentException Allows the user to set specific feature/property on the underlying implementation. The underlying implementation is not required to support every setting of every property in the specification and may use IllegalArgumentException to signal that an unsupported property may not be set with the specified value.
All implementations that implement JAXP 1.5 or newer are required to
support the
| |
| setXMLReporter | back to summary |
|---|---|
| public abstract void setXMLReporter(XMLReporter reporter) The reporter that will be set on any XMLStreamReader or XMLEventReader created by this factory instance.
| |
| setXMLResolver | back to summary |
|---|---|
| public abstract void setXMLResolver(XMLResolver resolver) The resolver that will be set on any XMLStreamReader or XMLEventReader created by this factory instance.
| |