Package org.apache.axiom.util.stax.xop
Class XOPEncodingStreamWrapper
- java.lang.Object
-
- org.apache.axiom.util.stax.xop.XOPEncodingStreamWrapper
-
- All Implemented Interfaces:
MimePartProvider
- Direct Known Subclasses:
XOPEncodingStreamReader
,XOPEncodingStreamWriter
public abstract class XOPEncodingStreamWrapper extends Object implements MimePartProvider
Base class forXOPEncodingStreamReader
andXOPEncodingStreamWriter
.
-
-
Constructor Summary
Constructors Constructor Description XOPEncodingStreamWrapper(ContentIDGenerator contentIDGenerator, OptimizationPolicy optimizationPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getContentIDs()
Get the set of content IDs referenced inxop:Include
element information items produced by this wrapper.DataHandler
getDataHandler(String contentID)
Get theDataHandler
for the MIME part identified by a given content ID.protected String
processDataHandler(DataHandler dataHandler, String existingContentID, boolean optimize)
protected String
processDataHandler(org.apache.axiom.ext.stax.datahandler.DataHandlerProvider dataHandlerProvider, String existingContentID, boolean optimize)
-
-
-
Constructor Detail
-
XOPEncodingStreamWrapper
public XOPEncodingStreamWrapper(ContentIDGenerator contentIDGenerator, OptimizationPolicy optimizationPolicy)
-
-
Method Detail
-
processDataHandler
protected String processDataHandler(DataHandler dataHandler, String existingContentID, boolean optimize) throws IOException
- Throws:
IOException
-
processDataHandler
protected String processDataHandler(org.apache.axiom.ext.stax.datahandler.DataHandlerProvider dataHandlerProvider, String existingContentID, boolean optimize) throws IOException
- Throws:
IOException
-
getContentIDs
public Set<String> getContentIDs()
Get the set of content IDs referenced inxop:Include
element information items produced by this wrapper.- Returns:
- The set of content IDs in their order of appearance in the infoset. If no
xop:Include
element information items have been produced yet, an empty set will be returned.
-
getDataHandler
public DataHandler getDataHandler(String contentID) throws IOException
Description copied from interface:MimePartProvider
Get theDataHandler
for the MIME part identified by a given content ID.- Specified by:
getDataHandler
in interfaceMimePartProvider
- Parameters:
contentID
- a content ID referenced in anxop:Include
element- Returns:
- the
DataHandler
for the MIME part identified by the content ID; may not benull
- Throws:
IOException
- if an error occurred while loading the part
-
-