Class ChunkedTextReader

java.lang.Object
com.norconex.importer.util.chunk.ChunkedTextReader

public class ChunkedTextReader extends Object
Supplies chunks of text to the provided consumer. If a field matcher is supplied, the text will be coming from matching document fields. Otherwise, the document body is used. In either case, if the text is greater than the maxChunkSize, it is split and read in chunks. This class is a convenient way to apply similar logic whether the text source is a document content, field, huge, or small.