Class FileWrapper


  • public class FileWrapper
    extends java.lang.Object
    An object that represents the attachment uploaded by the user.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileWrapper​(byte[] data, java.lang.String name)
      Creates an object for the attachment uploaded by the user
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getData()
      The byte array of the uploaded attachment
      int getLength()
      The size of the uploaded attachment
      java.lang.String getName()
      The name of the uploaded file along with its extension
      • Methods inherited from class java.lang.Object

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

      • FileWrapper

        public FileWrapper​(byte[] data,
                           java.lang.String name)
        Creates an object for the attachment uploaded by the user
        Parameters:
        data - The byte array of the uploaded attachment
        name - The name of the uploaded file along with its extension
    • Method Detail

      • getData

        public byte[] getData()
        The byte array of the uploaded attachment
        Returns:
        The byte array of the uploaded attachment
      • getName

        public java.lang.String getName()
        The name of the uploaded file along with its extension
        Returns:
        The name of the uploaded file along with its extension
      • getLength

        public int getLength()
        The size of the uploaded attachment
        Returns:
        The size of the uploaded attachment