Class Attachment


  • public class Attachment
    extends Object
    Since:
    public since 0.9.33, was package private
    Author:
    user
    • Constructor Detail

      • Attachment

        Attachment​(String name,
                   String type,
                   String encoding,
                   File data)
        Parameters:
        type - the content type
        encoding - the transfer encoding, non-null
    • Method Detail

      • getFileName

        public String getFileName()
        Returns:
        Returns the fileName.
      • getTransferEncoding

        public String getTransferEncoding()
        Returns:
        non-null
      • getContentType

        public String getContentType()
      • getPath

        public String getPath()
        Returns:
        absolute path to the data file
        Since:
        0.9.35
      • getSize

        public long getSize()
        The unencoded size
        Since:
        0.9.33
      • deleteData

        public void deleteData()
        Delete the data file
        Since:
        0.9.33
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
        Since:
        0.9.38
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Object
        Since:
        0.9.38