class OMStAXWrapper extends javax.xml.stream.util.StreamReaderDelegate implements OMXMLStreamReaderEx
XMLStreamReader implementation that generates events from a given Axiom tree.
This class does intentionally does not implement XMLStreamReaderContainer because
it does not wrap a parser (it wraps an OM graph).| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
log |
private SwitchingWrapper |
switchingWrapper |
private XOPEncodingStreamReader |
xopEncoder |
| Constructor and Description |
|---|
OMStAXWrapper(OMXMLParserWrapper builder,
OMContainer startNode)
When constructing the OMStaxWrapper, the creator must produce the builder (an instance of the
OMXMLparserWrapper of the input) and the Element Node to start parsing.
|
OMStAXWrapper(OMXMLParserWrapper builder,
OMContainer startNode,
boolean cache,
boolean preserveNamespaceContext)
Constructor OMStAXWrapper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableDataSourceEvents(boolean value)
If enabled, treat OMSourcedElements that have
a OMDataSource as leaf nodes.
|
javax.activation.DataHandler |
getDataHandler(java.lang.String contentID) |
OMDataSource |
getDataSource() |
boolean |
isClosed() |
boolean |
isInlineMTOM()
By default, an OMText item that has an MTOM datahandler
will be rendered as a inlined text event.
|
void |
releaseParserOnClose(boolean value) |
void |
setInlineMTOM(boolean value) |
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getParent, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, setParent, standaloneSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, standaloneSetprivate static final org.apache.commons.logging.Log log
private final SwitchingWrapper switchingWrapper
private XOPEncodingStreamReader xopEncoder
public OMStAXWrapper(OMXMLParserWrapper builder, OMContainer startNode)
builder - startNode - public OMStAXWrapper(OMXMLParserWrapper builder, OMContainer startNode, boolean cache, boolean preserveNamespaceContext)
builder - startNode - cache - preserveNamespaceContext - public boolean isInlineMTOM()
OMXMLStreamReaderisInlineMTOM in interface OMXMLStreamReaderpublic void setInlineMTOM(boolean value)
setInlineMTOM in interface OMXMLStreamReadervalue - set to true if inlining of text is desired (default)
throw OMException if not the value is not supported.public javax.activation.DataHandler getDataHandler(java.lang.String contentID)
getDataHandler in interface OMAttachmentAccessorcontentID - (without the surrounding angle brackets and "cid:" prefix)public boolean isClosed()
isClosed in interface OMXMLStreamReaderExpublic void releaseParserOnClose(boolean value)
releaseParserOnClose in interface OMXMLStreamReaderExpublic OMDataSource getDataSource()
getDataSource in interface OMXMLStreamReaderExpublic void enableDataSourceEvents(boolean value)
OMXMLStreamReaderExenableDataSourceEvents in interface OMXMLStreamReaderExvalue - boolean