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 Summary
ConstructorsConstructorDescriptionDefaultAttachmentExtractedTextManager(AttachmentManagerInternal attachmentManager, DataCompressor compressor)  - 
Method Summary
Modifier 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
- 
DefaultAttachmentExtractedTextManager
public DefaultAttachmentExtractedTextManager(AttachmentManagerInternal attachmentManager, DataCompressor compressor)  
 - 
 - 
Method Details
- 
getContent
Description copied from interface:AttachmentExtractedTextManagerReturns anOptionaldescribing theInputStreamSourceof extracted text of the provided attachment version if it is available, or an emptyOptionalotherwise.- Specified by:
 getContentin interfaceAttachmentExtractedTextManager
 - 
saveContent
Description copied from interface:AttachmentExtractedTextManagerSaves a stream of data as the extracted text of the provided attachment version.- Specified by:
 saveContentin interfaceAttachmentExtractedTextManager
 - 
removePreviousVersionContent
Description copied from interface:AttachmentExtractedTextManagerRemove extracted text of the previous version of the specified attachment version if it exists.- Specified by:
 removePreviousVersionContentin interfaceAttachmentExtractedTextManager
 - 
removeContent
Description copied from interface:AttachmentExtractedTextManagerRemove extracted text of the specified attachment version.- Specified by:
 removeContentin interfaceAttachmentExtractedTextManager
 
 -