All Packages Class Hierarchy This Package Previous Next Index
Class w3c.xmlOnline.parser.ISO88591InputStream
java.lang.Object
|
+----java.io.InputStream
|
+----java.io.FilterInputStream
|
+----w3c.xmlOnline.parser.ISO88591InputStream
- public class ISO88591InputStream
- extends FilterInputStream
- implements CharInputStream
A "FilterInputStream" for "decoding" ISO8859-1 streams.
Adds a method "readChar" that returns the next character from
a ISO8859-1 encoded input stream (which, of course, is just
the next byte).
This should probably be updated to use the Reader
classes from JDK 1.1...
- Version:
- $Id: w3c.xmlOnline.parser.ISO88591InputStream.html,v 1.7 1997/06/09 22:24:18 bbos Exp $
- Author:
- Bert Bos
-
ISO88591InputStream(InputStream)
- Initializer: creates a new ISO8859-1 stream.
-
readChar()
- Return next character.
ISO88591InputStream
public ISO88591InputStream(InputStream in)
- Initializer: creates a new ISO8859-1 stream.
- Parameters:
- in - the input stream
readChar
public int readChar() throws UTFDataFormatException, IOException
- Return next character. Will block until enough bytes
are available.
- Returns:
- the Unicode number of the character read,
or -1 if the end of the input is reached.
- See Also:
- CharInputStream
All Packages Class Hierarchy This Package Previous Next Index