|
|||||||||||
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.StreamNormalizingReader
This class represents a NormalizingReader which handles streams of bytes.
Nested Class Summary | |
protected static class |
StreamNormalizingReader.ASCIIDecoderFactory
To create an ASCIIDecoder. |
protected static 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. |
Fields inherited from class java.io.Reader |
lock |
Constructor Summary | |
protected |
StreamNormalizingReader()
This constructor is intended for use by subclasses. |
|
StreamNormalizingReader(InputStream is)
Creates a new NormalizingReader. |
|
StreamNormalizingReader(InputStream is,
String enc)
Creates a new NormalizingReader. |
|
StreamNormalizingReader(Reader r)
Creates a new NormalizingReader. |
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. |
Methods inherited from class org.apache.batik.util.io.NormalizingReader |
read |
Methods inherited from class java.io.Reader |
mark, markSupported, 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 CharDecoder charDecoder
protected int nextChar
protected int line
protected int column
protected static final Map charDecoderFactories
Constructor Detail |
public StreamNormalizingReader(InputStream is) throws IOException
is
- The input stream to decode.public StreamNormalizingReader(InputStream is, String enc) throws IOException
is
- The input stream to decode.enc
- The standard encoding name. A null encoding means
ISO-8859-1.public StreamNormalizingReader(Reader r) throws IOException
r
- The reader to wrap.protected StreamNormalizingReader()
Method Detail |
public int read() throws IOException
IOException
public int getLine()
getLine
in class NormalizingReader
public int getColumn()
getColumn
in class NormalizingReader
public void close() throws IOException
IOException
protected CharDecoder createCharDecoder(InputStream is, String enc) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |