public class ByteArrayMimeAttachment extends Object implements IMimeAttachment
IMimeAttachment to use a byte array
as MIME attachment.| Constructor and Description |
|---|
ByteArrayMimeAttachment(byte[] data,
String fileName) |
ByteArrayMimeAttachment(byte[] data,
String fileName,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
String |
getFileName() |
InputStream |
getInputStream() |
public ByteArrayMimeAttachment(byte[] data,
String fileName)
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.