Package com.saperion.ngc.util
Class ZKMailAttachment
java.lang.Object
com.saperion.ngc.util.ZKMailAttachment
This class represents a mail attachment. Immutable.
- Author:
- sts
-
Constructor Summary
ConstructorsConstructorDescriptionZKMailAttachment
(File attachmentFile) Builds a ZKMailAttachment by the use of a file as a parameter.ZKMailAttachment
(String mimetype, String filename, InputStream is) Builds a ZKMailAttachment. -
Method Summary
Modifier and TypeMethodDescriptionReturns the file name of the attached file.Returns the input stream of this attachment.Returns the MIME type of the attachment.
-
Constructor Details
-
ZKMailAttachment
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
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
Returns the MIME type of the attachment.- Returns:
- the MIME type as String
-
getFileName
Returns the file name of the attached file.- Returns:
- the file name as String
-
getInputStream
Returns the input stream of this attachment.- Returns:
- the input stream of this attachment as InputStream
-