public abstract class AbstractAttachment extends java.lang.Object implements Attachment
| Modifier and Type | Field and Description |
|---|---|
protected AttachmentException |
readInException |
FILE_ATTACHMENT, MEMORY_ATTACHMENT, OUTPUTSTREAM_ATTACHMENT, STREAM_ATTACHMENT| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAttachment(ContentType contentType)
Constructor with parameter for content type.
|
protected |
AbstractAttachment(java.lang.String contentId,
ContentType contentType)
Constructor with parameter for content id and content type.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
generateContentID() |
java.lang.String |
getContentId()
Return the content ID of this attachment.
|
ContentType |
getContentType()
The content type for this attachment.
|
boolean |
isAvailable() |
void |
setContentType(ContentType contentType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanDetermineSize, dispose, getType, sizeprotected AttachmentException readInException
protected AbstractAttachment(ContentType contentType)
contentType - protected AbstractAttachment(java.lang.String contentId,
ContentType contentType)
contentId - contentType - public static java.lang.String generateContentID()
public boolean isAvailable()
public java.lang.String getContentId()
AttachmentParameterValue instances.getContentId in interface Attachmentpublic ContentType getContentType() throws AttachmentException
AttachmentgetContentType in interface AttachmentAttachmentExceptionpublic void setContentType(ContentType contentType)