Interface Attachment
- All Known Implementing Classes:
AbstractAttachment,AttachmentImpl,BinaryAttachment
public interface Attachment
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbyte[]@Nullable String@Nullable StringgetId()jakarta.activation.MimeTypebooleanWhether the id is set manually (`true`) or generated automatically (`false`).voidloadContent(InputStream input) voidsetContent(byte[] content) voidsetDescription(String description) voidsetDisposition(Attachment.Disposition disposition) voidsetFileName(@Nullable String fileName) voidsetMimeType(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
-