public class OMXMLStreamReaderValidator extends XMLStreamReaderValidator implements OMXMLStreamReader
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, nextTag
close, 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, standaloneSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, 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, standaloneSet
public 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 OMAttachmentAccessor
blobcid
- (without the surrounding angle brackets and "cid:" prefix)public boolean isInlineMTOM()
OMXMLStreamReader
isInlineMTOM
in interface OMXMLStreamReader
public void setInlineMTOM(boolean value)
setInlineMTOM
in interface OMXMLStreamReader
value
- set to true if inlining of text is desired (default)
throw OMException if not the value is not supported.Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.