Interface SearchableAttachment
- All Superinterfaces:
Searchable
- All Known Implementing Classes:
Attachment
,ReadOnlyAttachment
An object representing some searchable file.
- Since:
- 8.0
-
Method Summary
Modifier and TypeMethodDescriptionReturn any comment associated with this attachmentReturn the contents of the attachment as an InputStreamGets the MIME content-type of this attachment.Gets the filename of this attachment.Methods inherited from interface com.atlassian.bonnie.Searchable
getId, getSearchableDependants, isIndexable
-
Method Details
-
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
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()
-