@ExperimentalApi
public interface AttachmentTextExtractor
| Modifier and Type | Method and Description |
|---|---|
Optional<InputStreamSource> |
extract(Attachment attachment)
Extracts text from an attachment.
|
List<String> |
getFileExtensions()
Return list of file extensions that this extractor supports.
|
List<String> |
getMimeTypes()
Return list of mime types that this extractor supports.
|
List<String> getFileExtensions()
Optional<InputStreamSource> extract(Attachment attachment)
RuntimeException to indicate unrecoverable
state of the attachment. In case of recoverable error, it shall returns Option.empty().attachment - attachment for extractionOptional describing a InputStreamSource of extracted text if succeeds otherwise
Option.empty()Copyright © 2003–2022 Atlassian. All rights reserved.