|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.util.io.GenericDecoder
public class GenericDecoder
This class delegates to a reader the decoding of an input stream.
| Field Summary | |
|---|---|
protected Reader |
reader
The reader used to decode the stream. |
| Fields inherited from interface org.apache.batik.util.io.CharDecoder |
|---|
END_OF_STREAM |
| Constructor Summary | |
|---|---|
GenericDecoder(InputStream is,
String enc)
Creates a new GenericDecoder. |
|
GenericDecoder(Reader r)
Creates a new GenericDecoder. |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes the associated resources. |
int |
readChar()
Reads the next character. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Reader reader
| Constructor Detail |
|---|
public GenericDecoder(InputStream is,
String enc)
throws IOException
is - The input stream to decode.enc - The Java encoding name.
IOExceptionpublic GenericDecoder(Reader r)
r - The reader to use.| Method Detail |
|---|
public int readChar()
throws IOException
readChar in interface CharDecoderIOException
public void dispose()
throws IOException
dispose in interface CharDecoderIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||