class BEADialect extends AbstractStAXDialect
| Modifier and Type | Field and Description |
|---|---|
static StAXDialect |
INSTANCE |
| Constructor and Description |
|---|
BEADialect() |
| Modifier and Type | Method and Description |
|---|---|
javax.xml.stream.XMLInputFactory |
disallowDoctypeDecl(javax.xml.stream.XMLInputFactory factory)
Configure the given factory to disallow DOCTYPE declarations.
|
javax.xml.stream.XMLInputFactory |
enableCDataReporting(javax.xml.stream.XMLInputFactory factory)
Configure the given factory to enable reporting of CDATA sections by stream readers created
from it.
|
java.lang.String |
getName()
Get the name of this dialect.
|
javax.xml.stream.XMLInputFactory |
makeThreadSafe(javax.xml.stream.XMLInputFactory factory)
Make an
XMLInputFactory object thread safe. |
javax.xml.stream.XMLOutputFactory |
makeThreadSafe(javax.xml.stream.XMLOutputFactory factory)
Make an
XMLOutputFactory object thread safe. |
javax.xml.stream.XMLInputFactory |
normalize(javax.xml.stream.XMLInputFactory factory)
Normalize an
XMLInputFactory. |
javax.xml.stream.XMLOutputFactory |
normalize(javax.xml.stream.XMLOutputFactory factory)
Normalize an
XMLOutputFactory. |
javax.xml.stream.XMLStreamReader |
normalize(javax.xml.stream.XMLStreamReader reader) |
javax.xml.stream.XMLStreamWriter |
normalize(javax.xml.stream.XMLStreamWriter writer) |
public static final StAXDialect INSTANCE
public java.lang.String getName()
StAXDialectpublic javax.xml.stream.XMLInputFactory enableCDataReporting(javax.xml.stream.XMLInputFactory factory)
StAXDialectXMLStreamReader.next() method suggests that even if the parser is non
coalescing, CDATA sections should be reported as CHARACTERS events. Some implementations
strictly follow the example, while for others it is sufficient to make the parser non
coalescing.factory - the factory to configure; this may be an already normalized factory or a "raw"
factory objectpublic javax.xml.stream.XMLInputFactory disallowDoctypeDecl(javax.xml.stream.XMLInputFactory factory)
StAXDialectXMLStreamConstants.START_ELEMENT
event.
factory - the factory to configure; this may be an already normalized factory or a "raw"
factory objectpublic javax.xml.stream.XMLInputFactory makeThreadSafe(javax.xml.stream.XMLInputFactory factory)
StAXDialectXMLInputFactory object thread safe. The implementation may do this either by
configuring the factory or by creating a thread safe wrapper. The returned factory must be
thread safe for all method calls that don't change the (visible) state of the factory. This
means that thread safety is not required for
XMLInputFactory.setEventAllocator(javax.xml.stream.util.XMLEventAllocator),
XMLInputFactory.setProperty(String, Object),
XMLInputFactory.setXMLReporter(javax.xml.stream.XMLReporter) and
XMLInputFactory.setXMLResolver(javax.xml.stream.XMLResolver).factory - the factory to make thread safepublic javax.xml.stream.XMLOutputFactory makeThreadSafe(javax.xml.stream.XMLOutputFactory factory)
StAXDialectXMLOutputFactory object thread safe. The implementation may do this either by
configuring the factory or by creating a thread safe wrapper. The returned factory must be
thread safe for all method calls that don't change the (visible) state, i.e. the properties,
of the factory.factory - the factory to make thread safepublic javax.xml.stream.XMLStreamReader normalize(javax.xml.stream.XMLStreamReader reader)
normalize in class AbstractStAXDialectpublic javax.xml.stream.XMLStreamWriter normalize(javax.xml.stream.XMLStreamWriter writer)
normalize in class AbstractStAXDialectpublic javax.xml.stream.XMLInputFactory normalize(javax.xml.stream.XMLInputFactory factory)
StAXDialectXMLInputFactory. This will make sure that the readers created from the
factory conform to the StAX specifications.factory - the factory to normalizepublic javax.xml.stream.XMLOutputFactory normalize(javax.xml.stream.XMLOutputFactory factory)
StAXDialectXMLOutputFactory. This will make sure that the writers created from the
factory conform to the StAX specifications.factory - the factory to normalize