com.sun.cldc.i18n.j2me
Class ISO8859_1_Reader
java.lang.Object
java.io.Reader
com.sun.cldc.i18n.StreamReader
com.sun.cldc.i18n.j2me.ISO8859_1_Reader
public class ISO8859_1_Reader
- extends StreamReader
Default class reading input streams
- Version:
- 1.0 10/18/99
Method Summary |
int |
read()
Read a single character. |
int |
read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array. |
int |
sizeOf(byte[] array,
int offset,
int length)
Get the size in chars of an array of bytes |
ISO8859_1_Reader
public ISO8859_1_Reader()
read
public int read()
throws IOException
- Read a single character.
- Overrides:
read
in class Reader
- Returns:
- The character read, as an integer in the range 0 to 65535
(0x00-0xffff), or -1 if the end of the stream has
been reached
- Throws:
IOException
- If an I/O error occurs
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Read characters into a portion of an array.
- Specified by:
read
in class Reader
- Parameters:
cbuf
- Destination bufferoff
- Offset at which to start storing characterslen
- Maximum number of characters to read
- Returns:
- The number of characters read, or -1 if the end of the
stream has been reached
- Throws:
IOException
- If an I/O error occurs
sizeOf
public int sizeOf(byte[] array,
int offset,
int length)
- Get the size in chars of an array of bytes
- Specified by:
sizeOf
in class StreamReader
"For updated information see the Java FRC site"