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 AttachmentTextExtraction
empty()
boolean
equals(Object o)
Optional<String>
getText()
int
hashCode()
static AttachmentTextExtraction
of(byte[] bytes, boolean compressed)
static AttachmentTextExtraction
of(InputStreamSource source, boolean compressed)
static AttachmentTextExtraction
of(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:AttachmentTextExtraction
Returns anOptional
describing the extracted text of if it is available, or an emptyOptional
otherwise.- Specified by:
getText
in interfaceAttachmentTextExtraction
-
-