public class OMXMLStreamReaderValidator extends XMLStreamReaderValidator implements OMXMLStreamReader
XMLStreamReaderValidator that also implements OMXMLStreamReader.OMContainer.getXMLStreamReader(boolean)ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
OMXMLStreamReaderValidator(OMXMLStreamReader delegate,
boolean throwExceptions) |
| Modifier and Type | Method and Description |
|---|---|
javax.activation.DataHandler |
getDataHandler(String blobcid) |
boolean |
isInlineMTOM()
By default, an OMText item that has an MTOM datahandler
will be rendered as a inlined text event.
|
void |
setInlineMTOM(boolean value) |
getElementText, logParserState, next, nextTagclose, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, 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, require, 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, standaloneSetpublic OMXMLStreamReaderValidator(OMXMLStreamReader delegate, boolean throwExceptions)
delegate - XMLStreamReader to validatethrowExceptions - (true if exceptions should be thrown when errors are encountered)public javax.activation.DataHandler getDataHandler(String blobcid)
getDataHandler in interface OMAttachmentAccessorblobcid - (without the surrounding angle brackets and "cid:" prefix)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.Copyright © The Apache Software Foundation. All Rights Reserved.