Class ObjectAttachment

java.lang.Object
overit.geocall.mail.Attachment
overit.geocall.mail.ObjectAttachment
All Implemented Interfaces:
DataSource

public class ObjectAttachment extends Attachment
This class defines a basic object attachment
  • Field Details

    • _useEncoding

      protected String _useEncoding
    • _o

      protected Object _o
  • Constructor Details

    • ObjectAttachment

      public ObjectAttachment(String code, String fileName, String type, String contentType, ByteCache bc) throws IOException
      Creates a new ObjectAttachment
      Parameters:
      code - The code of the file
      fileName - The file name
      type - The type of the file
      contentType - The content type
      bc - The ByteCache of the object
      Throws:
      IOException - If an I/O error occurs
    • ObjectAttachment

      public ObjectAttachment(String code, String fileName, String type, String contentType, UpFile uf) throws IOException
      Creates a new ObjectAttachment
      Parameters:
      code - The code of the file
      fileName - The file name
      type - The type of the file
      contentType - The content type
      uf - The UpFile
      Throws:
      IOException - If an I/O error occurs
    • ObjectAttachment

      public ObjectAttachment(String code, String fileName, String type, String contentType, File f) throws IOException
      Creates a new ObjectAttachment
      Parameters:
      code - The code of the file
      fileName - The file name
      type - The type of the file
      contentType - The content type
      f - The File
      Throws:
      IOException - If an I/O error occurs
    • ObjectAttachment

      public ObjectAttachment(String code, String fileName, String type, String contentType, byte[] bb) throws IOException
      Creates a new ObjectAttachment
      Parameters:
      code - The code of the file
      fileName - The file name
      type - The type of the file
      contentType - The content type
      bb - The array of bytes of the object
      Throws:
      IOException - If an I/O error occurs
    • ObjectAttachment

      public ObjectAttachment(String code, String fileName, String type, String contentType, String text) throws IOException
      Creates a new ObjectAttachment
      Parameters:
      code - The code of the file
      fileName - The file name
      type - The type of the file
      contentType - The content type
      text - The text of the object
      Throws:
      IOException - If an I/O error occurs
  • Method Details