public class DefaultCharInputReader extends AbstractCharInputReader
AbstractCharInputReader through the reloadBuffer() method.buffer, closeOnStop, i, length| Constructor and Description |
|---|
DefaultCharInputReader(char[] lineSeparator,
char normalizedLineSeparator,
int bufferSize,
int whitespaceRangeStart,
boolean closeOnStop)
Creates a new instance with the mandatory characters for handling newlines transparently.
|
DefaultCharInputReader(char normalizedLineSeparator,
int bufferSize,
int whitespaceRangeStart,
boolean closeOnStop)
Creates a new instance with the mandatory characters for handling newlines transparently.
|
| Modifier and Type | Method and Description |
|---|---|
void |
reloadBuffer()
Copies a sequence of characters from the input into the
AbstractCharInputReader.buffer, and updates the AbstractCharInputReader.length to the number of characters read. |
protected void |
setReader(Reader reader)
Passes the
Reader provided in the AbstractCharInputReader.start(Reader) method to the extending class so it can begin loading characters from it. |
void |
stop()
Stops the CharInputReader from reading characters from the
Reader provided in CharInputReader.start(Reader) and closes it. |
addInputAnalysisProcess, charCount, currentParsedContent, currentParsedContentLength, enableNormalizeLineEndings, getChar, getLineSeparator, getQuotedString, getString, lastIndexOf, lineCount, markRecordStart, nextChar, readComment, skipLines, skipQuotedString, skipString, skipWhitespace, start, unwrapInputStreampublic DefaultCharInputReader(char normalizedLineSeparator,
int bufferSize,
int whitespaceRangeStart,
boolean closeOnStop)
normalizedLineSeparator - the normalized newline character (as defined in Format.getNormalizedNewline()) that is used to replace any lineSeparator sequence found in the input.bufferSize - the buffer size used to store characters read from the input.whitespaceRangeStart - starting range of characters considered to be whitespace.closeOnStop - indicates whether to automatically close the input when stop() is calledpublic DefaultCharInputReader(char[] lineSeparator,
char normalizedLineSeparator,
int bufferSize,
int whitespaceRangeStart,
boolean closeOnStop)
lineSeparator - the sequence of characters that represent a newline, as defined in Format.getLineSeparator()normalizedLineSeparator - the normalized newline character (as defined in Format.getNormalizedNewline()) that is used to replace any lineSeparator sequence found in the input.bufferSize - the buffer size used to store characters read from the input.whitespaceRangeStart - starting range of characters considered to be whitespace.closeOnStop - indicates whether to automatically close the input when stop() is calledpublic void stop()
CharInputReaderReader provided in CharInputReader.start(Reader) and closes it.protected void setReader(Reader reader)
AbstractCharInputReaderReader provided in the AbstractCharInputReader.start(Reader) method to the extending class so it can begin loading characters from it.setReader in class AbstractCharInputReaderreader - the Reader provided in AbstractCharInputReader.start(Reader)public void reloadBuffer()
AbstractCharInputReader.buffer, and updates the AbstractCharInputReader.length to the number of characters read.reloadBuffer in class AbstractCharInputReaderCopyright © 2021 Univocity Software Pty Ltd. All rights reserved.