Class Attachment

  • All Implemented Interfaces:
    java.io.Serializable

    @StableMinor(version="17.0",
                 sinceVersion="8.1")
    public class Attachment
    extends java.lang.Object
    implements java.io.Serializable
    Attachment to a Document object. Contains the information about a single attachment.
    Since:
    8.1.0
    Version:
    $Revision: 26587 $ $Date: 2024-08-26 21:09:17 -0300 (Mon, 26 Aug 2024) $
    See Also:
    Serialized Form
    • Constructor Detail

      • Attachment

        public Attachment()
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name for this attachment.
        Returns:
        the name.
        Since:
        8.1.0
      • setName

        public Attachment setName​(java.lang.String name)
        Sets the name for this attachment.
        Parameters:
        name - the name.
        Since:
        8.1.0
      • getContentType

        public java.lang.String getContentType()
        Returns the MIME content type for this attachment.
        Returns:
        the MIME content type.
        Since:
        8.1.0
      • setContentType

        public Attachment setContentType​(java.lang.String contentType)
        Sets the MIME content type for this attachment.
        Parameters:
        contentType - the MIME content type.
        Since:
        8.1.0
      • getContentProvider

        public IInputStreamProvider getContentProvider()
        Returns the content data for this attachment.
        Returns:
        the content data for this attachment.
        Since:
        8.1.0
      • setContentProvider

        public Attachment setContentProvider​(IInputStreamProvider contentProvider)
        Sets the content data for this attachment.
        Parameters:
        content - the content data.
        Since:
        8.1.0