Class ISO88591InputStream
java.lang.Object
|
+----java.io.InputStream
|
+----java.io.FilterInputStream
|
+----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).
-
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