public class Attachment extends Object implements Serializable
| Constructor and Description |
|---|
Attachment(String fileName,
byte[] content,
int size)
Creates a new attachment
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent()
Gets the content in (bytes)
|
String |
getFileName()
Gets the file name
|
String |
getMimeType()
Gets the mime type of the attachment
|
int |
getSize()
Gets the size of the attachment
|
void |
setContent(byte[] content)
Sets the content
|
void |
setfileName(String fileName)
Sets the file name of the attachment
|
void |
setMimeType(String mimeType)
Sets the mime type of the attachment
|
void |
setSize(int size)
Sets the size of the attachment
|
public Attachment(String fileName, byte[] content, int size)
fileName - The file namecontent - The content (in bytes of the attachment)size - The size of the attachmentpublic String getFileName()
public void setfileName(String fileName)
fileName - The name of the filepublic byte[] getContent()
public void setContent(byte[] content)
content - The content in bytespublic int getSize()
public void setSize(int size)
size - The size of the attachmentpublic String getMimeType()
public void setMimeType(String mimeType)
mimeType - The mime type of the attachmentCopyright © 2019. All rights reserved.