public class LocalFileMimeAttachment extends Object implements IMimeAttachment
IMimeAttachment to use a local file
as MIME attachment.| Constructor and Description |
|---|
LocalFileMimeAttachment(Path filePathOnDisk) |
LocalFileMimeAttachment(Path filePathOnDisk,
String fileName) |
LocalFileMimeAttachment(Path filePathOnDisk,
String fileName,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
String |
getFileName() |
InputStream |
getInputStream() |
public LocalFileMimeAttachment(Path filePathOnDisk)
public String getFileName() throws IOException
getFileName in interface IMimeAttachmentIOExceptionpublic String getContentType() throws IOException
getContentType in interface IMimeAttachmentIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in interface IMimeAttachmentIOExceptionCopyright © 2019–2021 HCL. All rights reserved.