Class DefaultAttachmentExtractedTextManager
java.lang.Object
com.atlassian.confluence.internal.index.attachment.DefaultAttachmentExtractedTextManager
- All Implemented Interfaces:
- AttachmentExtractedTextManager
public class DefaultAttachmentExtractedTextManager
extends Object
implements AttachmentExtractedTextManager
Note that as extracted text is stored in the filesystem in compression format, changing 
DataCompressor
 will require the migration of extracted text into new compression format.- Since:
- 6.5
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultAttachmentExtractedTextManager(AttachmentManagerInternal attachmentManager, DataCompressor compressor) 
- 
Method SummaryModifier and TypeMethodDescriptiongetContent(Attachment attachment) Returns anOptionaldescribing theInputStreamSourceof extracted text of the provided attachment version if it is available, or an emptyOptionalotherwise.voidremoveContent(Attachment attachment) Remove extracted text of the specified attachment version.voidremovePreviousVersionContent(Attachment attachment) Remove extracted text of the previous version of the specified attachment version if it exists.voidsaveContent(Attachment attachment, InputStreamSource inputStreamSource) Saves a stream of data as the extracted text of the provided attachment version.
- 
Constructor Details- 
DefaultAttachmentExtractedTextManagerpublic DefaultAttachmentExtractedTextManager(AttachmentManagerInternal attachmentManager, DataCompressor compressor) 
 
- 
- 
Method Details- 
getContentDescription copied from interface:AttachmentExtractedTextManagerReturns anOptionaldescribing theInputStreamSourceof extracted text of the provided attachment version if it is available, or an emptyOptionalotherwise.- Specified by:
- getContentin interface- AttachmentExtractedTextManager
 
- 
saveContentDescription copied from interface:AttachmentExtractedTextManagerSaves a stream of data as the extracted text of the provided attachment version.- Specified by:
- saveContentin interface- AttachmentExtractedTextManager
 
- 
removePreviousVersionContentDescription copied from interface:AttachmentExtractedTextManagerRemove extracted text of the previous version of the specified attachment version if it exists.- Specified by:
- removePreviousVersionContentin interface- AttachmentExtractedTextManager
 
- 
removeContentDescription copied from interface:AttachmentExtractedTextManagerRemove extracted text of the specified attachment version.- Specified by:
- removeContentin interface- AttachmentExtractedTextManager
 
 
-