public class Attachment extends Object
| Constructor and Description |
|---|
Attachment(String filename,
byte[] data) |
Attachment(String filename,
byte[] data,
MimeType mimeType) |
Attachment(String filename,
byte[] data,
String mimeType) |
Attachment(String filename,
InputStream stream) |
Attachment(String filename,
InputStream stream,
MimeType mimeType) |
Attachment(String filename,
InputStream stream,
String mimeType) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData() |
String |
getFilename() |
String |
getMimeType() |
void |
setData(byte[] attachmentData) |
void |
setData(InputStream stream) |
void |
setFilename(String filename) |
void |
setMimeType(String mimeType) |
public Attachment(String filename, byte[] data)
public Attachment(String filename, InputStream stream) throws IOException
IOExceptionpublic Attachment(String filename, InputStream stream, MimeType mimeType) throws IOException
IOExceptionpublic Attachment(String filename, InputStream stream, String mimeType) throws IOException
IOExceptionpublic byte[] getData()
public void setData(byte[] attachmentData)
public void setData(InputStream stream) throws IOException
IOExceptionpublic String getMimeType()
public void setMimeType(String mimeType)
public String getFilename()
public void setFilename(String filename)
Copyright © 2017. All rights reserved.