public class ZKMailAttachment extends Object
Constructor and Description |
---|
ZKMailAttachment(File attachmentFile)
Builds a ZKMailAttachment by the use of a file as a parameter.
|
ZKMailAttachment(String mimetype,
String filename,
InputStream is)
Builds a ZKMailAttachment.
|
Modifier and Type | Method and Description |
---|---|
String |
getFileName()
Returns the file name of the attached file.
|
InputStream |
getInputStream()
Returns the input stream of this attachment.
|
String |
getMimeType()
Returns the MIME type of the attachment.
|
public ZKMailAttachment(String mimetype, String filename, InputStream is)
mimetype
- The MIME-type of the attachment.filename
- The file name of the attachment.is
- The input stream containing the attachment.public ZKMailAttachment(File attachmentFile) throws FileNotFoundException
attachmentFile
- The to become an attachment.FileNotFoundException
- Is thrown if the given file cannot be found.public String getMimeType()
public String getFileName()
public InputStream getInputStream()
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.