org.apache.batik.util.io
public class StreamNormalizingReader extends NormalizingReader
Nested Class Summary | |
---|---|
protected static class | StreamNormalizingReader.ASCIIDecoderFactory
To create an ASCIIDecoder. |
protected interface | StreamNormalizingReader.CharDecoderFactory
Represents a CharDecoder factory. |
protected static class | StreamNormalizingReader.ISO_8859_1DecoderFactory
To create an ISO_8859_1Decoder. |
protected static class | StreamNormalizingReader.UTF16DecoderFactory
To create a UTF16Decoder. |
protected static class | StreamNormalizingReader.UTF8DecoderFactory
To create a UTF8Decoder. |
Field Summary | |
---|---|
protected CharDecoder | charDecoder
The char decoder. |
protected static Map | charDecoderFactories
The CharDecoder factories map. |
protected int | column
The current column in the stream. |
protected int | line
The current line in the stream. |
protected int | nextChar
The next char. |
Constructor Summary | |
---|---|
StreamNormalizingReader(InputStream is)
Creates a new NormalizingReader. | |
StreamNormalizingReader(InputStream is, String enc)
Creates a new NormalizingReader. | |
StreamNormalizingReader(Reader r)
Creates a new NormalizingReader. | |
protected | StreamNormalizingReader()
This constructor is intended for use by subclasses. |
Method Summary | |
---|---|
void | close()
Close the stream. |
protected CharDecoder | createCharDecoder(InputStream is, String enc)
Creates the CharDecoder mapped with the given encoding name. |
int | getColumn()
Returns the current column in the stream. |
int | getLine()
Returns the current line in the stream. |
int | read()
Read a single character. |
Parameters: is The input stream to decode.
Parameters: is The input stream to decode. enc The standard encoding name. A null encoding means ISO-8859-1.
Parameters: r The reader to wrap.