Class GenericDecoder
java.lang.Object
org.apache.batik.util.io.GenericDecoder
- All Implemented Interfaces:
CharDecoder
This class delegates to a reader the decoding of an input stream.
-
Field Summary
FieldsFields inherited from interface CharDecoder
END_OF_STREAM -
Constructor Summary
ConstructorsConstructorDescriptionGenericDecoder(InputStream is, String enc) Creates a new GenericDecoder.Creates a new GenericDecoder. -
Method Summary
-
Field Details
-
reader
The reader used to decode the stream.
-
-
Constructor Details
-
GenericDecoder
Creates a new GenericDecoder.- Parameters:
is- The input stream to decode.enc- The Java encoding name.- Throws:
IOException
-
GenericDecoder
-
-
Method Details
-
readChar
Reads the next character.- Specified by:
readCharin interfaceCharDecoder- Returns:
- a character or END_OF_STREAM.
- Throws:
IOException
-
dispose
Disposes the associated resources.- Specified by:
disposein interfaceCharDecoder- Throws:
IOException
-