public class BBjAdminEmailAttachment
extends java.lang.Object
implements java.io.Serializable
A single email message that will be sent through a BBjAdminEmailService.
Find a complete code sample at: BBjAdminEmailService
.
Constructor and Description |
---|
BBjAdminEmailAttachment() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Get the byte[] contents of the file.
|
java.lang.String |
getFilename()
Get the filename for the attachment.
|
void |
setBytes(byte[] p_bytes)
Set the byte array contents for the file.
|
void |
setBytesFromFile(java.io.File p_file)
Helper method to set the byte array for the file by specifying the java.io.File
instead of a byte array.
|
void |
setFilename(java.lang.String p_filename)
Sets the filename for the attached file.
|
public void setFilename(java.lang.String p_filename)
p_filename
- Name of file. Not the full path, just the filename.public java.lang.String getFilename()
public byte[] getBytes() throws BBjAdminException
BBjAdminException
public void setBytes(byte[] p_bytes)
p_bytes
- Contents of the file.public void setBytesFromFile(java.io.File p_file) throws BBjAdminException
p_file
- File to extract bytes from.BBjAdminException