public interface ContentReader
An instance of ContentReader is used repeatedly, i.e. if the same FoldTemplate is assigned to multiple folds. It is advised that the implementation of ContentReader is stateless.
|Modifier and Type||Interface and Description|
Factory, which produces ContentReader instance(s) appropriate for the fold type.
CharSequence read(Document d, Fold f, FoldTemplate ft) throws BadLocationException
If the ContentReader cannot extract the contents (i.e. it does not want to handle the fold),
null may be returned. If more ContentReaders are registered, some other instance might
handle the fold properly. If not, the placeholder will be retained and presented in the fold
d- the document to read from
f- fold, whose contents should be read
ft- the original fold template, if available
nullif unwilling to retrieve the content.