Interface ContentIDGenerator


  • public interface ContentIDGenerator
    Content ID generator interface. Implementations of this interface are used by XOPEncodingStreamReader to generate content IDs for use in xop:Include elements.
    • Field Detail

      • DEFAULT

        static final ContentIDGenerator DEFAULT
        Default content ID generator that preserves any existing content ID.
    • Method Detail

      • generateContentID

        String generateContentID​(String existingContentID)
        Generate a content ID.
        Parameters:
        existingContentID - An existing content ID for the DataHandler being processed, as returned by DataHandlerReader.getContentID(), or null if no existing content ID is known. The implementation is free to use this information or not.
        Returns:
        the content ID; may not be null