Class FileAttachment

  • All Implemented Interfaces:
    java.io.Serializable

    public class FileAttachment
    extends java.lang.Object
    implements java.io.Serializable
    File Attachement Object
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FileAttachment​(java.lang.String fileName, byte[] data, java.lang.String type)
      Creates a new FileAttachement object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getData()  
      java.lang.String getFileName()  
      java.lang.String getType()
      return the file content-type
      void setData​(byte[] data)
      set the content of the fileAttachement object
      void setFileName​(java.lang.String fileName)
      set the file name
      void setType​(java.lang.String type)
      set the file content-type
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileAttachment

        public FileAttachment​(java.lang.String fileName,
                              byte[] data,
                              java.lang.String type)
        Creates a new FileAttachement object.
        Parameters:
        fileName - the file name
        data - The data
        type - The file Content-type
    • Method Detail

      • getData

        public byte[] getData()
        Returns:
        the content of the fileAttachement object
      • setData

        public void setData​(byte[] data)
        set the content of the fileAttachement object
        Parameters:
        data - the content of the fileAttachement object
      • getFileName

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

        public void setFileName​(java.lang.String fileName)
        set the file name
        Parameters:
        fileName - the file name
      • getType

        public java.lang.String getType()
        return the file content-type
        Returns:
        Content-type
      • setType

        public void setType​(java.lang.String type)
        set the file content-type
        Parameters:
        type - the file content-type