AbstractCharInputReader through the DefaultCharInputReader#reloadBuffer method.
| Modifier and Type | Field and Description |
|---|---|
| private Reader | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | DefaultCharInputReader(char
the normalized newline character (as defined in normalizedLineSeparator, int Format#getNormalizedNewline()) that is used to replace any lineSeparator sequence found in the input.the buffer size used to store characters read from the input. bufferSize, int starting range of characters considered to be whitespace. whitespaceRangeStart, boolean indicates whether to automatically close the input when closeOnStop)stop() is calledCreates a new instance with the mandatory characters for handling newlines transparently. |
| public | DefaultCharInputReader(char[]
the sequence of characters that represent a newline, as defined in lineSeparator, char Format#getLineSeparator()the normalized newline character (as defined in normalizedLineSeparator, int Format#getNormalizedNewline()) that is used to replace any lineSeparator sequence found in the input.the buffer size used to store characters read from the input. bufferSize, int starting range of characters considered to be whitespace. whitespaceRangeStart, boolean indicates whether to automatically close the input when closeOnStop)stop() is calledCreates a new instance with the mandatory characters for handling newlines transparently. |
| Modifier and Type | Method and Description |
|---|---|
| public void | reloadBuffer()
Implements abstract com. DefaultCharInputReader#buffer, and updates the DefaultCharInputReader#length to the number of characters read.
|
| protected void | setReader(Reader
the reader)java. provided in AbstractCharInputReader#start(Reader)Implements abstract com. java. provided in the AbstractCharInputReader#start(Reader) method to the extending class so it can begin loading characters from it.
|
| public void | stop()
Implements com. java. provided in CharInputReader#start(Reader) and closes it.
|
| reader | back to summary |
|---|---|
| private Reader reader | |
| unwrapping | back to summary |
|---|---|
| private boolean unwrapping | |
| DefaultCharInputReader | back to summary |
|---|---|
| public DefaultCharInputReader(char normalizedLineSeparator, int bufferSize, int whitespaceRangeStart, boolean closeOnStop) Creates a new instance with the mandatory characters for handling newlines transparently. Line separators will be detected automatically.
| |
| DefaultCharInputReader | back to summary |
|---|---|
| public DefaultCharInputReader(char[] lineSeparator, char normalizedLineSeparator, int bufferSize, int whitespaceRangeStart, boolean closeOnStop) Creates a new instance with the mandatory characters for handling newlines transparently.
| |
| reloadBuffer | back to summary |
|---|---|
| public void reloadBuffer() Implements abstract com. Copies a sequence of characters from the input into the
| |
| setReader | back to summary |
|---|---|
| protected void setReader(Reader reader) Implements abstract com. Doc from com. Passes the
| |
| stop | back to summary |
|---|---|
| public void stop() Implements com. Doc from com. Stops the CharInputReader from reading characters from the
| |