java.io.Closeable, java.lang.AutoCloseable, java.lang.Readablepublic class StringNormalizingReader extends NormalizingReader
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
column |
The current column in the stream.
|
protected int |
length |
The length of the string.
|
protected int |
line |
The current line in the stream.
|
protected int |
next |
The index of the next character.
|
protected java.lang.String |
string |
The characters.
|
| Constructor | Description |
|---|---|
StringNormalizingReader(java.lang.String s) |
Creates a new StringNormalizingReader.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Close the stream.
|
int |
getColumn() |
Returns the current column in the stream.
|
int |
getLine() |
Returns the current line in the stream.
|
int |
read() |
Read a single character.
|
readprotected java.lang.String string
protected int length
protected int next
protected int line
protected int column
public StringNormalizingReader(java.lang.String s)
s - The string to read.public int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int getLine()
getLine in class NormalizingReaderpublic int getColumn()
getColumn in class NormalizingReaderpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.Readerjava.io.IOExceptionCopyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.