Package com.saperion.ngc.util
Class ZKMailAttachment
- java.lang.Object
- 
- com.saperion.ngc.util.ZKMailAttachment
 
- 
 public class ZKMailAttachment extends java.lang.ObjectThis class represents a mail attachment. Immutable.- Author:
- sts
 
- 
- 
Constructor SummaryConstructors Constructor Description ZKMailAttachment(java.io.File attachmentFile)Builds a ZKMailAttachment by the use of a file as a parameter.ZKMailAttachment(java.lang.String mimetype, java.lang.String filename, java.io.InputStream is)Builds a ZKMailAttachment.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFileName()Returns the file name of the attached file.java.io.InputStreamgetInputStream()Returns the input stream of this attachment.java.lang.StringgetMimeType()Returns the MIME type of the attachment.
 
- 
- 
- 
Constructor Detail- 
ZKMailAttachmentpublic ZKMailAttachment(java.lang.String mimetype, java.lang.String filename, java.io.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.
 
 - 
ZKMailAttachmentpublic ZKMailAttachment(java.io.File attachmentFile) throws java.io.FileNotFoundExceptionBuilds a ZKMailAttachment by the use of a file as a parameter.- Parameters:
- attachmentFile- The to become an attachment.
- Throws:
- java.io.FileNotFoundException- Is thrown if the given file cannot be found.
 
 
- 
 - 
Method Detail- 
getMimeTypepublic java.lang.String getMimeType() Returns the MIME type of the attachment.- Returns:
- the MIME type as String
 
 - 
getFileNamepublic java.lang.String getFileName() Returns the file name of the attached file.- Returns:
- the file name as String
 
 - 
getInputStreampublic java.io.InputStream getInputStream() Returns the input stream of this attachment.- Returns:
- the input stream of this attachment as InputStream
 
 
- 
 
-