public class Attachment
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Attachment[] |
EMPTY_ARRAY |
Constructor and Description |
---|
Attachment(java.lang.String path,
byte [] bytes,
java.lang.String displayText) |
Attachment(java.lang.String path,
java.io.File temporaryFile,
java.lang.String displayText) |
Attachment(java.lang.String path,
java.lang.String content) |
Attachment(java.lang.String name,
java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
byte [] |
getBytes() |
java.lang.String |
getDisplayText() |
java.lang.String |
getEncodedBytes() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
boolean |
isIncluded() |
java.io.InputStream |
openContentStream() |
void |
setIncluded(boolean included) |
public static final Attachment[] EMPTY_ARRAY
public Attachment(java.lang.String name, java.lang.Throwable throwable)
public Attachment(java.lang.String path, java.lang.String content)
public Attachment(java.lang.String path, byte [] bytes, java.lang.String displayText)
public Attachment(java.lang.String path, java.io.File temporaryFile, java.lang.String displayText)
public java.lang.String getDisplayText()
public java.lang.String getPath()
public java.lang.String getName()
public java.lang.String getEncodedBytes()
public byte [] getBytes()
public java.io.InputStream openContentStream()
public boolean isIncluded()
public void setIncluded(boolean included)