public abstract class XOPEncodingStreamWrapper extends Object implements MimePartProvider
XOPEncodingStreamReader
and XOPEncodingStreamWriter
.Constructor and Description |
---|
XOPEncodingStreamWrapper(ContentIDGenerator contentIDGenerator,
OptimizationPolicy optimizationPolicy) |
Modifier and Type | Method and Description |
---|---|
Set |
getContentIDs()
Get the set of content IDs referenced in xop:Include element information items
produced by this wrapper.
|
javax.activation.DataHandler |
getDataHandler(String contentID)
Get the
DataHandler for the MIME part identified by a given content ID. |
boolean |
isLoaded(String contentID)
Check whether the MIME part identified by a given content ID has already been loaded.
|
protected String |
processDataHandler(DataHandlerProvider dataHandlerProvider,
String existingContentID,
boolean optimize) |
protected String |
processDataHandler(javax.activation.DataHandler dataHandler,
String existingContentID,
boolean optimize) |
public XOPEncodingStreamWrapper(ContentIDGenerator contentIDGenerator, OptimizationPolicy optimizationPolicy)
protected String processDataHandler(javax.activation.DataHandler dataHandler, String existingContentID, boolean optimize) throws IOException
IOException
protected String processDataHandler(DataHandlerProvider dataHandlerProvider, String existingContentID, boolean optimize) throws IOException
IOException
public Set getContentIDs()
public boolean isLoaded(String contentID)
MimePartProvider
true
means that a call to MimePartProvider.getDataHandler(String)
(for
the same content ID) will not block or will retrieve the DataHandler
without
overhead.isLoaded
in interface MimePartProvider
true
if the MIME part has already been loaded; false
otherwisepublic javax.activation.DataHandler getDataHandler(String contentID) throws IOException
MimePartProvider
DataHandler
for the MIME part identified by a given content ID.getDataHandler
in interface MimePartProvider
contentID
- a content ID referenced in an xop:Include elementDataHandler
for the MIME part identified by the content ID; may not be
null
IOException
- if an error occurred while loading the partCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.