Package 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
-
-
Field Summary
-
Fields inherited from class org.apache.axiom.om.impl.builder.StAXBuilder
_isClosed, _releaseParserOnClose, cache, charEncoding, customBuilderForPayload, customBuilders, dataHandlerReader, document, done, elementLevel, lastNode, maxDepthForCustomBuilders, omfactory, parser, parserAccessed, parserException
-
-
Constructor Summary
Constructors Constructor Description XOPAwareStAXOMBuilder(InputStream inStream, Attachments attachments)XOPAwareStAXOMBuilder(String filePath, Attachments attachments)XOPAwareStAXOMBuilder(XMLStreamReader parser, Attachments attachments)Constructor StAXXOPAwareOMBuilder.XOPAwareStAXOMBuilder(OMFactory ombuilderFactory, XMLStreamReader parser, Attachments attachments)Constructor StAXOMBuilder.XOPAwareStAXOMBuilder(OMFactory factory, XMLStreamReader parser, OMElement element, Attachments attachments)Constructor linked to existing element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachmentsgetAttachments()DataHandlergetDataHandler(String blobContentID)-
Methods inherited from class org.apache.axiom.om.impl.builder.StAXOMBuilder
createComment, createDTD, createNextOMElement, createOMElement, createPI, createPrefix, createWithCustomBuilder, endElement, getDocumentElement, getDocumentElement, isLookahead, isNamespaceURIInterning, logParserState, lookahead, next, processNamespaceData, setDoDebug, setNamespaceURIInterning
-
Methods inherited from class org.apache.axiom.om.impl.builder.StAXBuilder
close, createOMText, discard, getAttributeCount, getAttributeName, getAttributeNamespace, getAttributePrefix, getBuilderType, getCharacterEncoding, getCharsetEncoding, getCustomBuilder, getDocument, getLastNode, getName, getNamespace, getNamespaceCount, getNamespacePrefix, getNamespaceUri, getParser, getPrefix, getReaderProperty, getRegisteredContentHandler, getText, init, isCache, isClosed, isCompleted, processAttributes, registerCustomBuilder, registerCustomBuilderForPayload, registerExternalContentHandler, releaseParserOnClose, reset, setCache, setOMBuilderFactory
-
-
-
-
Constructor Detail
-
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:
XMLStreamExceptionFileNotFoundException
-
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-
-
-
Method Detail
-
getDataHandler
public DataHandler getDataHandler(String blobContentID) throws OMException
- Specified by:
getDataHandlerin interfaceOMAttachmentAccessor- Specified by:
getDataHandlerin interfaceXOPBuilder- 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:
getAttachmentsin interfaceXOPBuilder
-
-