public interface Attachment
An attachment does not contain on its own a content (i.e. the bytes). It is a descriptor of the content, with a combination of logical path and
MIME type. The actual bytes shall be obtained with an AttachmentResolver
.
An AttributeValueXHTML
value might contain XHTML object tags. Those XHTML object tags can be obtained as Attachment
instances using the XHTMLUtils.getAttachments(String)
method. An AttachmentResolver
can then be obtained to access the
actual content using the XHTMLUtils.createAttachmentResolver(File)
method.
Clients may implement this interface.
Modifier and Type | Method and Description |
---|---|
String |
getMimeType()
Returns the MIME type of the content (e.g.
|
String |
getPath()
A logical path to get access to the content.
|
String getPath()
AttachmentResolver
AttachmentResolver
String getMimeType()
image/jpeg
).XHTMLUtils.getMimeType(String, String)