public class ClosestNewLineChunker extends CharReadableChunker
seeker instances, each operating over one chunk, not transitioning itself
into the next.CharReadableChunker.ChunkImplchunkSize, position, reader| Constructor and Description |
|---|
ClosestNewLineChunker(CharReadable reader,
int chunkSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
nextChunk(Source.Chunk chunk)
Fills the given chunk with data from the underlying
CharReadable, up to a good cut-off point
in the vicinity of the buffer size. |
close, fillFromBackBuffer, newChunk, position, storeInBackBufferpublic ClosestNewLineChunker(CharReadable reader, int chunkSize)
public boolean nextChunk(Source.Chunk chunk) throws IOException
CharReadable, up to a good cut-off point
in the vicinity of the buffer size.chunk - Source.Chunk to read data into.Source.Chunk of data, ending with a new-line or not for the last chunk.IOException - on reading error.Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.