Fields Summary |
---|
public static final String | IS_NAMESPACE_AWAREThe 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_VALIDATINGThe property used to turn on/off implementation specific validation |
public static final String | IS_COALESCINGThe property that requires the parser to coalesce adjacent character data sections |
public static final String | IS_REPLACING_ENTITY_REFERENCESRequires the parser to replace internal
entity references with their replacement
text and report them as characters |
public static final String | IS_SUPPORTING_EXTERNAL_ENTITIESThe property that requires the parser to resolve external parsed entities |
public static final String | SUPPORT_DTDThe property that requires the parser to support DTDs |
public static final String | REPORTERThe property used to
set/get the implementation of the XMLReporter interface |
public static final String | RESOLVERThe property used to set/get the implementation of the XMLResolver |
public static final String | ALLOCATORThe property used to set/get the implementation of the allocator |
Methods Summary |
---|
public abstract javax.xml.stream.XMLStreamReader | createFilteredReader(javax.xml.stream.XMLStreamReader reader, javax.xml.stream.StreamFilter filter)Create a filtered reader that wraps the filter around the reader
|
public abstract javax.xml.stream.XMLEventReader | createFilteredReader(javax.xml.stream.XMLEventReader reader, javax.xml.stream.EventFilter filter)Create a filtered event reader that wraps the filter around the event reader
|
public abstract javax.xml.stream.XMLEventReader | createXMLEventReader(java.io.Reader reader)Create a new XMLEventReader from a reader
|
public abstract javax.xml.stream.XMLEventReader | createXMLEventReader(java.lang.String systemId, java.io.Reader reader)Create a new XMLEventReader from a reader
|
public abstract javax.xml.stream.XMLEventReader | createXMLEventReader(javax.xml.stream.XMLStreamReader reader)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.
|
public abstract javax.xml.stream.XMLEventReader | createXMLEventReader(javax.xml.transform.Source source)Create a new XMLEventReader from a JAXP source.
Support of this method is optional.
|
public abstract javax.xml.stream.XMLEventReader | createXMLEventReader(java.io.InputStream stream)Create a new XMLEventReader from a java.io.InputStream
|
public abstract javax.xml.stream.XMLEventReader | createXMLEventReader(java.io.InputStream stream, java.lang.String encoding)Create a new XMLEventReader from a java.io.InputStream
|
public abstract javax.xml.stream.XMLEventReader | createXMLEventReader(java.lang.String systemId, java.io.InputStream stream)Create a new XMLEventReader from a java.io.InputStream
|
public abstract javax.xml.stream.XMLStreamReader | createXMLStreamReader(java.io.Reader reader)Create a new XMLStreamReader from a reader
|
public abstract javax.xml.stream.XMLStreamReader | createXMLStreamReader(javax.xml.transform.Source source)Create a new XMLStreamReader from a JAXP source. This method is optional.
|
public abstract javax.xml.stream.XMLStreamReader | createXMLStreamReader(java.io.InputStream stream)Create a new XMLStreamReader from a java.io.InputStream
|
public abstract javax.xml.stream.XMLStreamReader | createXMLStreamReader(java.io.InputStream stream, java.lang.String encoding)Create a new XMLStreamReader from a java.io.InputStream
|
public abstract javax.xml.stream.XMLStreamReader | createXMLStreamReader(java.lang.String systemId, java.io.InputStream stream)Create a new XMLStreamReader from a java.io.InputStream
|
public abstract javax.xml.stream.XMLStreamReader | createXMLStreamReader(java.lang.String systemId, java.io.Reader reader)Create a new XMLStreamReader from a java.io.InputStream
|
public abstract javax.xml.stream.util.XMLEventAllocator | getEventAllocator()Gets the allocator used by streams created with this factory
|
public abstract java.lang.Object | getProperty(java.lang.String name)Get the value of a feature/property from the underlying implementation
|
public abstract javax.xml.stream.XMLReporter | getXMLReporter()The reporter that will be set on any XMLStreamReader or XMLEventReader created
by this factory instance.
|
public abstract javax.xml.stream.XMLResolver | getXMLResolver()The resolver that will be set on any XMLStreamReader or XMLEventReader created
by this factory instance.
|
public abstract boolean | isPropertySupported(java.lang.String name)Query the set of properties that this factory supports.
|
public static javax.xml.stream.XMLInputFactory | newInstance()Create a new instance of the factory.
This static method creates a new factory instance.
This method uses the following ordered lookup procedure to determine
the XMLInputFactory implementation class to load:
Use the javax.xml.stream.XMLInputFactory system property.
Use the properties file "lib/stax.properties" in the JRE directory.
This configuration file is in standard java.util.Properties format and contains
the fully qualified name of the implementation class with the key being the system property defined above.
Use the Services API (as detailed in the JAR specification), if available, to determine the classname.
The Services API will look for a classname in the file META-INF/services/javax.xml.stream.XMLInputFactory
in jars available to the runtime.
Platform default XMLInputFactory instance.
Once an application has obtained a reference to a XMLInputFactory
it can use the factory to configure and obtain stream instances.
return (XMLInputFactory) FactoryFinder.find(
"javax.xml.stream.XMLInputFactory",
"com.sun.xml.internal.stream.XMLInputFactoryImpl");
|
public static javax.xml.stream.XMLInputFactory | newInstance(java.lang.String factoryId, java.lang.ClassLoader classLoader)Create a new instance of the factory
try {
//do not fallback if given classloader can't find the class, throw exception
return (XMLInputFactory) FactoryFinder.newInstance(factoryId, classLoader, false);
} catch (FactoryFinder.ConfigurationError e) {
throw new FactoryConfigurationError(e.getException(),
e.getMessage());
}
|
public abstract void | setEventAllocator(javax.xml.stream.util.XMLEventAllocator allocator)Set a user defined event allocator for events
|
public abstract void | setProperty(java.lang.String name, java.lang.Object value)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.
|
public abstract void | setXMLReporter(javax.xml.stream.XMLReporter reporter)The reporter that will be set on any XMLStreamReader or XMLEventReader created
by this factory instance.
|
public abstract void | setXMLResolver(javax.xml.stream.XMLResolver resolver)The resolver that will be set on any XMLStreamReader or XMLEventReader created
by this factory instance.
|