com.groupdocs.viewer.domain

Class Attachment

    • Constructor Detail

      • Attachment

        public Attachment()

        Constructor for Attachment.

      • Attachment

        public Attachment(String sourceDocumentGuid,
                  String name)

        Creates new instance of Attachment class.

        Parameters:
        sourceDocumentGuid - The source document GUID.
        name - The attachment name.
      • Attachment

        public Attachment(String sourceDocumentGuid,
                  String attachmentID,
                  String name)

        Creates new instance of Attachment class.

        Parameters:
        sourceDocumentGuid - The source document GUID.
        attachmentID - The attachment ID.
        name - The attachment name.
      • Attachment

        public Attachment(String sourceDocumentGuid,
                  String attachmentID,
                  String name,
                  long size)

        Creates new instance of Attachment class.

        Parameters:
        sourceDocumentGuid - The source document GUID.
        attachmentID - The attachment ID.
        name - The attachment name.
        size - The attachment size in bytes.
    • Method Detail

      • getSize

        public long getSize()

        Gets attachment size.

        Returns:
        a long.
      • setSize

        public void setSize(long value)

        Sets attachment size.

        Parameters:
        value - a long.