java.lang.Object
javax.xml.stream.XMLInputFactory
Defines an abstract implementation of a factory for getting streams.
The following table defines the standard properties of this specification.
Each property varies in the level of support required by each implementation.
The level of support required is described in the 'Required' column.
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 |
- Since:
- 1.6
- See Also:
XMLOutputFactory
,XMLEventReader
,XMLStreamReader
,EventFilter
,XMLReporter
,XMLResolver
,XMLEventAllocator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
The property used to set/get the implementation of the allocatorstatic String
The property that requires the parser to coalesce adjacent character data sectionsstatic String
The property used to turn on/off namespace support, this is to support XML 1.0 documents, only the true setting must be supportedstatic String
Requires the parser to replace internal entity references with their replacement text and report them as charactersstatic String
The property that requires the parser to resolve external parsed entitiesstatic String
The property used to turn on/off implementation specific validationstatic String
The property used to set/get the implementation of the XMLReporter interfacestatic String
The property used to set/get the implementation of the XMLResolverstatic String
The property that requires the parser to support DTDs -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Protected constructor to prevent instantiation. -
Method Summary
Modifier and TypeMethodDescriptionabstract XMLEventReader
createFilteredReader(XMLEventReader reader, EventFilter filter)
Create a filtered event reader that wraps the filter around the event readerabstract XMLStreamReader
createFilteredReader(XMLStreamReader reader, StreamFilter filter)
Create a filtered reader that wraps the filter around the readerabstract XMLEventReader
createXMLEventReader(InputStream stream)
Create a new XMLEventReader from a java.io.InputStreamabstract XMLEventReader
createXMLEventReader(InputStream stream, String encoding)
Create a new XMLEventReader from a java.io.InputStreamabstract XMLEventReader
createXMLEventReader(Reader reader)
Create a new XMLEventReader from a reader.abstract XMLEventReader
createXMLEventReader(String systemId, InputStream stream)
Create a new XMLEventReader from a java.io.InputStreamabstract XMLEventReader
createXMLEventReader(String systemId, Reader reader)
Create a new XMLEventReader from a reader.abstract XMLEventReader
createXMLEventReader(XMLStreamReader reader)
Create a new XMLEventReader from an XMLStreamReader.abstract XMLEventReader