- All Implemented Interfaces:
- com.atlassian.bonnie.search.Extractor
public class LimitedTextContentExtractor
extends com.atlassian.bonnie.search.extractor.DefaultTextContentExtractor
A subclass of Bonnie's 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.
- Since:
- v5.4