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
  • Constructor Details

  • Method Details

    • processDataHandler

      protected String processDataHandler(DataHandler dataHandler, String existingContentID, boolean optimize) throws IOException
      Throws:
      IOException
    • processDataHandler

      protected String processDataHandler(DataHandlerProvider dataHandlerProvider, String existingContentID, boolean optimize) throws IOException
      Throws:
      IOException
    • getContentIDs

      public Set getContentIDs()
      Get the set of content IDs referenced in xop: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.
    • isLoaded

      public boolean isLoaded(String contentID)
      Description copied from interface: MimePartProvider
      Check whether the MIME part identified by a given content ID has already been loaded. A return value of true means that a call to MimePartProvider.getDataHandler(String) (for the same content ID) will not block or will retrieve the DataHandler without overhead.
      Specified by:
      isLoaded in interface MimePartProvider
      Returns:
      true if the MIME part has already been loaded; false otherwise
    • getDataHandler

      public DataHandler getDataHandler(String contentID) throws IOException
      Description copied from interface: MimePartProvider
      Get the DataHandler for the MIME part identified by a given content ID.
      Specified by:
      getDataHandler in interface MimePartProvider
      Parameters:
      contentID - a content ID referenced in an xop:Include element
      Returns:
      the DataHandler for the MIME part identified by the content ID; may not be null
      Throws:
      IOException - if an error occurred while loading the part