Interface Attachment
- All Known Implementing Classes:
AbstractAttachment
,AttachmentImpl
,BinaryAttachment
public interface Attachment
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
@Nullable String
@Nullable String
getId()
jakarta.activation.MimeType
boolean
Whether the id is set manually (`true`) or generated automatically (`false`).void
loadContent
(InputStream input) void
setContent
(byte[] content) void
setDescription
(String description) void
setDisposition
(Attachment.Disposition disposition) void
setFileName
(@Nullable String fileName) void
setMimeType
(jakarta.activation.MimeType mimeType)
-
Method Details
-
getId
String getId() -
isManualId
boolean isManualId()Whether the id is set manually (`true`) or generated automatically (`false`). -
getFileName
-
setFileName
-
getEncodedFileName
-
getDescription
String getDescription() -
setDescription
-
getMimeType
jakarta.activation.MimeType getMimeType() -
setMimeType
void setMimeType(jakarta.activation.MimeType mimeType) -
getContent
byte[] getContent() -
setContent
void setContent(byte[] content) -
loadContent
- Throws:
IOException
-
getDisposition
Attachment.Disposition getDisposition() -
setDisposition
-