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).


Constructor Index

 o ISO88591InputStream(InputStream)
Initializer: creates a new ISO8859-1 stream.

Method Index

 o readChar()
Return next character.

Constructors

 o ISO88591InputStream
 public ISO88591InputStream(InputStream in)
Initializer: creates a new ISO8859-1 stream.

Parameters:
in - the input stream

Methods

 o 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