|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.univocity.parsers.common.input.AbstractCharInputReader
com.univocity.parsers.common.input.DefaultCharInputReader
public class DefaultCharInputReader
A default CharInputReader which only loads batches of characters when requested by the AbstractCharInputReader through the reloadBuffer() method.
| Field Summary |
|---|
| Fields inherited from class com.univocity.parsers.common.input.AbstractCharInputReader |
|---|
buffer, i, length |
| Constructor Summary | |
|---|---|
DefaultCharInputReader(char[] lineSeparator,
char normalizedLineSeparator,
int bufferSize,
int whitespaceRangeStart)
Creates a new instance with the mandatory characters for handling newlines transparently. |
|
DefaultCharInputReader(char normalizedLineSeparator,
int bufferSize,
int whitespaceRangeStart)
Creates a new instance with the mandatory characters for handling newlines transparently. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.univocity.parsers.common.input.AbstractCharInputReader |
|---|
addInputAnalysisProcess, charCount, currentParsedContent, enableNormalizeLineEndings, getChar, getLineSeparator, getQuotedString, getString, lineCount, markRecordStart, nextChar, readComment, skipLines, skipWhitespace, start, unwrapInputStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCharInputReader(char normalizedLineSeparator,
int bufferSize,
int whitespaceRangeStart)
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.
public DefaultCharInputReader(char[] lineSeparator,
char normalizedLineSeparator,
int bufferSize,
int whitespaceRangeStart)
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.| Method Detail |
|---|
public 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 AbstractCharInputReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||