public class UrlMimeAttachment extends Object implements IMimeAttachment
IMimeAttachment to use a URL
as MIME attachment.| Constructor and Description |
|---|
UrlMimeAttachment(URL url)
Creates a new instance
|
UrlMimeAttachment(URL url,
String fileName)
Creates a new instance
|
UrlMimeAttachment(URL url,
String fileName,
String contentType)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
String |
getFileName() |
InputStream |
getInputStream() |
public UrlMimeAttachment(URL url)
url - url to read the attachment content. We also try to read the content type and filename.public UrlMimeAttachment(URL url, String fileName)
url - url to read the attachment content. We also try to read the content type.fileName - attachment filenamepublic 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.