public class LimitedTextContentExtractor
extends com.atlassian.bonnie.search.extractor.DefaultTextContentExtractor
DefaultTextContentExtractor
which places a limit on how many bytes of the input stream
are read into memory. This prevents it from potentially reading in huge attachment streams that trigger memory starvation.
This may have the side-effect of some content not being indexed if it is to be found "beyond" the limit, but that's preferable to an OOME.
Constructor and Description |
---|
LimitedTextContentExtractor() |
Modifier and Type | Method and Description |
---|---|
protected String |
extractText(InputStream is,
com.atlassian.bonnie.search.SearchableAttachment attachment) |
shouldExtractFrom
protected String extractText(InputStream is, com.atlassian.bonnie.search.SearchableAttachment attachment)
extractText
in class com.atlassian.bonnie.search.extractor.DefaultTextContentExtractor
Copyright © 2003–2016 Atlassian. All rights reserved.