|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Reader
org.apache.batik.util.io.NormalizingReader
org.apache.batik.util.io.StringNormalizingReader
public class StringNormalizingReader
This class represents a NormalizingReader which handles Strings.
| Field Summary | |
|---|---|
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. |
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
StringNormalizingReader(java.lang.String s)
Creates a new StringNormalizingReader. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.batik.util.io.NormalizingReader |
|---|
read |
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, ready, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String string
protected int length
protected int next
protected int line
protected int column
| Constructor Detail |
|---|
public StringNormalizingReader(java.lang.String s)
s - The string to read.| Method Detail |
|---|
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 NormalizingReader
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.Readerjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||