public class DefaultAttachmentExtractedTextManager extends Object implements AttachmentExtractedTextManager
DataCompressor
 will require the migration of extracted text into new compression format.| Constructor and Description | 
|---|
| DefaultAttachmentExtractedTextManager(AttachmentManager attachmentManager,
                                     DataCompressor compressor) | 
| Modifier and Type | Method and Description | 
|---|---|
| Optional<InputStreamSource> | getContent(Attachment attachment)Returns an  Optionaldescribing theInputStreamSourceof extracted text of the provided attachment
 version if it is available, or an emptyOptionalotherwise. | 
| void | removeContent(Attachment attachment)Remove extracted text of the specified attachment version. | 
| void | removePreviousVersionContent(Attachment attachment)Remove extracted text of the previous version of the specified attachment version if it exists. | 
| void | saveContent(Attachment attachment,
           InputStreamSource inputStreamSource)Saves a stream of data as the extracted text of the provided attachment version. | 
public DefaultAttachmentExtractedTextManager(AttachmentManager attachmentManager, DataCompressor compressor)
public Optional<InputStreamSource> getContent(Attachment attachment)
AttachmentExtractedTextManagerOptional describing the InputStreamSource of extracted text of the provided attachment
 version if it is available, or an empty Optional otherwise.getContent in interface AttachmentExtractedTextManagerpublic void saveContent(Attachment attachment, InputStreamSource inputStreamSource)
AttachmentExtractedTextManagersaveContent in interface AttachmentExtractedTextManagerpublic void removePreviousVersionContent(Attachment attachment)
AttachmentExtractedTextManagerremovePreviousVersionContent in interface AttachmentExtractedTextManagerpublic void removeContent(Attachment attachment)
AttachmentExtractedTextManagerremoveContent in interface AttachmentExtractedTextManagerCopyright © 2003–2019 Atlassian. All rights reserved.