org.apache.axiom.om.impl.builder
Class XOPAwareStAXOMBuilder
java.lang.Object
org.apache.axiom.om.impl.builder.StAXBuilder
org.apache.axiom.om.impl.builder.StAXOMBuilder
org.apache.axiom.om.impl.builder.XOPAwareStAXOMBuilder
- All Implemented Interfaces:
- XOPBuilder, OMAttachmentAccessor, OMXMLParserWrapper
public class XOPAwareStAXOMBuilder
- extends StAXOMBuilder
- implements XOPBuilder
| Fields inherited from class org.apache.axiom.om.impl.builder.StAXBuilder |
_isClosed, _releaseParserOnClose, cache, charEncoding, customBuilderForPayload, customBuilders, dataHandlerReader, document, done, elementLevel, maxDepthForCustomBuilders, omfactory, parser, parserAccessed, parserException, target |
|
Constructor Summary |
XOPAwareStAXOMBuilder(InputStream inStream,
Attachments attachments)
|
XOPAwareStAXOMBuilder(OMFactory ombuilderFactory,
XMLStreamReader parser,
Attachments attachments)
Constructor StAXOMBuilder. |
XOPAwareStAXOMBuilder(OMFactory omFactory,
XMLStreamReader reader,
MimePartProvider mimePartProvider)
|
XOPAwareStAXOMBuilder(OMFactory factory,
XMLStreamReader parser,
OMElement element,
Attachments attachments)
Constructor linked to existing element. |
XOPAwareStAXOMBuilder(String filePath,
Attachments attachments)
|
XOPAwareStAXOMBuilder(XMLStreamReader parser,
Attachments attachments)
Constructor StAXXOPAwareOMBuilder. |
| Methods inherited from class org.apache.axiom.om.impl.builder.StAXOMBuilder |
constructNode, createComment, createDocument, createDTD, createEntityReference, createNextOMElement, createOMElement, createPI, createPrefix, createWithCustomBuilder, getDocumentElement, getDocumentElement, isLookahead, isNamespaceURIInterning, logParserState, lookahead, next, processNamespaceData, setDoDebug, setNamespaceURIInterning |
| Methods inherited from class org.apache.axiom.om.impl.builder.StAXBuilder |
close, createDocumentIfNecessary, createOMText, debugDiscarded, discard, discard, getAttributeCount, getAttributeName, getAttributeNamespace, getAttributePrefix, getBuilderType, getCharacterEncoding, getCharsetEncoding, getCustomBuilder, getDocument, getName, getNamespace, getNamespaceCount, getNamespacePrefix, getNamespaceUri, getParser, getPrefix, getReaderProperty, getRegisteredContentHandler, getText, init, isCache, isClosed, isCompleted, processAttributes, registerCustomBuilder, registerCustomBuilderForPayload, registerExternalContentHandler, releaseParserOnClose, setCache, setOMBuilderFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XOPAwareStAXOMBuilder
public XOPAwareStAXOMBuilder(OMFactory ombuilderFactory,
XMLStreamReader parser,
Attachments attachments)
- Constructor StAXOMBuilder.
- Parameters:
ombuilderFactory - parser -
XOPAwareStAXOMBuilder
public XOPAwareStAXOMBuilder(OMFactory factory,
XMLStreamReader parser,
OMElement element,
Attachments attachments)
- Constructor linked to existing element.
- Parameters:
factory - parser - element -
XOPAwareStAXOMBuilder
public XOPAwareStAXOMBuilder(String filePath,
Attachments attachments)
throws XMLStreamException,
FileNotFoundException
- Parameters:
filePath - - Path to the XML file
- Throws:
XMLStreamException
FileNotFoundException
XOPAwareStAXOMBuilder
public XOPAwareStAXOMBuilder(InputStream inStream,
Attachments attachments)
throws XMLStreamException
- Parameters:
inStream - - instream which contains the XML
- Throws:
XMLStreamException
XOPAwareStAXOMBuilder
public XOPAwareStAXOMBuilder(XMLStreamReader parser,
Attachments attachments)
- Constructor StAXXOPAwareOMBuilder.
- Parameters:
parser -
XOPAwareStAXOMBuilder
public XOPAwareStAXOMBuilder(OMFactory omFactory,
XMLStreamReader reader,
MimePartProvider mimePartProvider)
getDataHandler
public DataHandler getDataHandler(String blobContentID)
throws OMException
- Specified by:
getDataHandler in interface XOPBuilder- Specified by:
getDataHandler in interface OMAttachmentAccessor
- Parameters:
blobContentID - (without the surrounding angle brackets and "cid:" prefix)
- Returns:
- The DataHandler of the mime part referred by the Content-Id or *null* if the mime
part referred by the content-id does not exist
- Throws:
OMException
getAttachments
public Attachments getAttachments()
- Specified by:
getAttachments in interface XOPBuilder
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.