Interface SearchableAttachment

  • All Superinterfaces:
    Searchable
    All Known Implementing Classes:
    Attachment

    public interface SearchableAttachment
    extends Searchable
    An object representing some searchable file.
    Since:
    8.0
    • Method Detail

      • getContentType

        String getContentType()
        Gets the MIME content-type of this attachment. If there is no content-type, return "application/x-unknown". Should never return null.
        Returns:
        the MIME content-type of the attachment, or "application/x-unknown" if the MIME type is unknown
      • getFileName

        String getFileName()
        Gets the filename of this attachment. If there is no filename, return the empty string. This method should never return null.
        Returns:
        the filename of this attachment, or the empty string if there is no filename
      • getContentsAsStream

        InputStream getContentsAsStream()
                                 throws IOException
        Return the contents of the attachment as an InputStream
        Returns:
        an InputStream set at the start of the attachment's contents.
        Throws:
        IOException
      • getComment

        String getComment()
        Return any comment associated with this attachment
      • getNiceType

        String getNiceType()
      • getNiceFileSize

        String getNiceFileSize()
      • getDownloadPath

        String getDownloadPath()