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
Optional describing the InputStreamSource of extracted text of the provided attachment
version if it is available, or an empty Optional otherwise. |
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)
AttachmentExtractedTextManager
Optional
describing the InputStreamSource
of extracted text of the provided attachment
version if it is available, or an empty Optional
otherwise.getContent
in interface AttachmentExtractedTextManager
public void saveContent(Attachment attachment, InputStreamSource inputStreamSource)
AttachmentExtractedTextManager
saveContent
in interface AttachmentExtractedTextManager
public void removePreviousVersionContent(Attachment attachment)
AttachmentExtractedTextManager
removePreviousVersionContent
in interface AttachmentExtractedTextManager
public void removeContent(Attachment attachment)
AttachmentExtractedTextManager
removeContent
in interface AttachmentExtractedTextManager
Copyright © 2003–2021 Atlassian. All rights reserved.