com.groupdocs.viewer.results

Class Attachment

  • All Implemented Interfaces:
    Serializable


    public class Attachment
    extends Object
    implements Serializable

    Represents attachment file contained by email message, archive, PDF document or Outlook data file.

    See Also:
    Serialized Form
    • Constructor Detail

      • Attachment

        public Attachment(String id,
                  String fileName,
                  long size)

        Initializes new instance of Attachment class.

        Parameters:
        id - Unique (in context of single file) identifier of the attachment.
        fileName - Attachment file name.
        size - Attachment file size in bytes.
        Throws:
        IllegalArgumentException - Thrown when id is null or empty.
        IllegalArgumentException - Thrown when fileName is null or empty.
    • Method Detail

      • getFileName

        public final String getFileName()
      • getFileType

        public final FileType getFileType()
      • getId

        public final String getId()
      • getSize

        public final long getSize()
      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        A string that represents the current object.