org.apache.batik.util.io

Class StringNormalizingReader

public class StringNormalizingReader extends NormalizingReader

This class represents a NormalizingReader which handles Strings.
Field Summary
protected intcolumn
The current column in the stream.
protected intlength
The length of the string.
protected intline
The current line in the stream.
protected intnext
The index of the next character.
protected Stringstring
The characters.
Constructor Summary
StringNormalizingReader(String s)
Creates a new StringNormalizingReader.
Method Summary
voidclose()
Close the stream.
intgetColumn()
Returns the current column in the stream.
intgetLine()
Returns the current line in the stream.
intread()
Read a single character.

Field Detail

column

protected int column
The current column in the stream.

length

protected int length
The length of the string.

line

protected int line
The current line in the stream.

protected int next
The index of the next character.

string

protected String string
The characters.

Constructor Detail

StringNormalizingReader

public StringNormalizingReader(String s)
Creates a new StringNormalizingReader.

Parameters: s The string to read.

Method Detail

close

public void close()
Close the stream.

getColumn

public int getColumn()
Returns the current column in the stream.

getLine

public int getLine()
Returns the current line in the stream.

read

public int read()
Read a single character. This method will block until a character is available, an I/O error occurs, or the end of the stream is reached.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.