Class Attachment

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  Attachment.Metadata
      Information about the image attachment.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o) 
      java.io.File getFile()
      Returns the local File for this attachment.
      Attachment.Metadata getMetadata()
      Returns the metadata for this image attachment or null if this attachment is not an image.
      java.lang.String getMimeType()
      Returns the MIME type of this attachment.
      java.lang.String getName()
      Returns the full name of this attachment.
      long getSize()
      Returns size of this attachment in bytes.
      java.lang.String getUrl()
      Returns the URL for this attachment.
      int hashCode() 
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the full name of this attachment. For example, "screenshot.png".
      • getMimeType

        public java.lang.String getMimeType()
        Returns the MIME type of this attachment. For example, "image/png".
      • getSize

        public long getSize()
        Returns size of this attachment in bytes. For example, 1048576.
      • getUrl

        public java.lang.String getUrl()
        Returns the URL for this attachment.
      • getFile

        public java.io.File getFile()
        Returns the local File for this attachment.
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object