Class Attachment

    • Method Detail

      • getAttachmentType

        public abstract String getAttachmentType()
      • getId

        public String getId()
        Gets the id.
        Returns:
        the id
      • setId

        public void setId​(String s)
        Sets the id.
        Parameters:
        s - the new id
      • getFileName

        public String getFileName()
        Gets the file name.
        Returns:
        the file name
      • setFileName

        public void setFileName​(String s)
        Sets the file name.
        Parameters:
        s - the new file name
      • getMimeType

        public String getMimeType()
        Gets the mime type.
        Returns:
        the mime type
      • setMimeType

        public void setMimeType​(String s)
        Sets the mime type.
        Parameters:
        s - the new mime type
      • getLastModified

        public long getLastModified()
        Gets the last modified.
        Returns:
        the last modified
      • setLastModified

        public void setLastModified​(long lastModified)
        Sets the last modified.
        Parameters:
        lastModified - the new last modified
      • getSize

        public String getSize()
        Gets images size in MB/ KB/ Bytes.
        Returns:
        image size string
      • getImageBytes

        public byte[] getImageBytes()
      • setInputStream

        public void setInputStream​(InputStream input)
                            throws IOException
        Read image bytes from input stream
        Parameters:
        input - the new input stream
        Throws:
        IOException - the exception