Class ZKMailAttachment

java.lang.Object
com.saperion.ngc.util.ZKMailAttachment

public class ZKMailAttachment extends Object
This class represents a mail attachment. Immutable.
Author:
sts
  • Constructor Details

    • ZKMailAttachment

      public ZKMailAttachment(String mimetype, String filename, InputStream is)
      Builds a ZKMailAttachment.
      Parameters:
      mimetype - The MIME-type of the attachment.
      filename - The file name of the attachment.
      is - The input stream containing the attachment.
    • ZKMailAttachment

      public ZKMailAttachment(File attachmentFile) throws FileNotFoundException
      Builds a ZKMailAttachment by the use of a file as a parameter.
      Parameters:
      attachmentFile - The to become an attachment.
      Throws:
      FileNotFoundException - Is thrown if the given file cannot be found.
  • Method Details

    • getMimeType

      public String getMimeType()
      Returns the MIME type of the attachment.
      Returns:
      the MIME type as String
    • getFileName

      public String getFileName()
      Returns the file name of the attached file.
      Returns:
      the file name as String
    • getInputStream

      public InputStream getInputStream()
      Returns the input stream of this attachment.
      Returns:
      the input stream of this attachment as InputStream