public class AutoReadingSource extends Object implements Source
ThreadAheadReadable doing both the
reading and parsing one BufferedCharSeeker is used over a stream of chunks, where the next
chunk seamlessly transitions into the next, this class comes in handy. It uses a CharReadable
and SectionedCharBuffer to do this.Source.ChunkEMPTY_CHUNK| Constructor and Description |
|---|
AutoReadingSource(CharReadable reader,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Source.Chunk |
nextChunk(int seekStartPos) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsingleChunkpublic AutoReadingSource(CharReadable reader, int bufferSize)
public Source.Chunk nextChunk(int seekStartPos) throws IOException
nextChunk in interface SourceIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.