Interface Attachment

All Known Implementing Classes:
AbstractAttachment, AttachmentImpl, BinaryAttachment

public interface Attachment
  • Method Details

    • getId

      String getId()
    • isManualId

      boolean isManualId()
      Whether the id is set manually (`true`) or generated automatically (`false`).
    • getFileName

      @Nullable @Nullable String getFileName()
    • setFileName

      void setFileName(@Nullable @Nullable String fileName)
    • getEncodedFileName

      @Nullable @Nullable String getEncodedFileName()
    • getDescription

      String getDescription()
    • setDescription

      void setDescription(String description)
    • getMimeType

      jakarta.activation.MimeType getMimeType()
    • setMimeType

      void setMimeType(jakarta.activation.MimeType mimeType)
    • getContent

      byte[] getContent()
    • setContent

      void setContent(byte[] content)
    • loadContent

      void loadContent(InputStream input) throws IOException
      Throws:
      IOException
    • getDisposition

      Attachment.Disposition getDisposition()
    • setDisposition

      void setDisposition(Attachment.Disposition disposition)