Class DefaultAttachmentTextExtraction
- java.lang.Object
-
- com.atlassian.confluence.internal.index.attachment.DefaultAttachmentTextExtraction
-
- All Implemented Interfaces:
AttachmentTextExtraction,Serializable
public class DefaultAttachmentTextExtraction extends Object implements AttachmentTextExtraction
- Since:
- 6.5
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttachmentTextExtractionempty()booleanequals(Object o)Optional<String>getText()inthashCode()static AttachmentTextExtractionof(byte[] bytes, boolean compressed)static AttachmentTextExtractionof(InputStreamSource source, boolean compressed)static AttachmentTextExtractionof(String text, boolean compressed)
-
-
-
Method Detail
-
of
public static AttachmentTextExtraction of(byte[] bytes, boolean compressed)
-
of
public static AttachmentTextExtraction of(String text, boolean compressed)
-
empty
public static AttachmentTextExtraction empty()
-
of
public static AttachmentTextExtraction of(InputStreamSource source, boolean compressed)
-
getText
public Optional<String> getText()
Description copied from interface:AttachmentTextExtractionReturns anOptionaldescribing the extracted text of if it is available, or an emptyOptionalotherwise.- Specified by:
getTextin interfaceAttachmentTextExtraction
-
-