| java.lang.Object java.io.Reader com.sun.cdc.i18n.StreamReader com.sun.cdc.i18n.j2me.Gen_Reader
Gen_Reader | public class Gen_Reader extends StreamReader (Code) | | Generic interface for stream conversion reading of
specific character encoded input streams.
|
Method Summary | |
public Reader | open(InputStream in, String open_enc) Generic routine to open an InputStream with a specific
character encoding. | public synchronized int | read() Read a single converted character. | public synchronized int | read(char cbuf, int off, int len) Read a block of converted characters. | public void | reset() Reset the stream. | public int | sizeOf(byte[] c, int offset, int length) Get the size of the converted bytes as a Unicode
byte array. | public long | skip(long n) Skip over a number of bytes in the input stream.
Parameters: n - number of bytes to bypass from the input stream. |
read | public synchronized int read() throws IOException(Code) | | Read a single converted character.
a single converted character exception: IOException - is thrown if the input stream could not be read for the raw unconverted character |
read | public synchronized int read(char cbuf, int off, int len) throws IOException(Code) | | Read a block of converted characters.
Parameters: cbuf - output buffer for converted characters read Parameters: off - initial offset into the provided buffer Parameters: len - length of characters in the buffer the number of converted characters, or -1 if an error occurred in the input arguments exception: IOException - is thrown if the input stream could not be read for the raw unconverted character |
sizeOf | public int sizeOf(byte[] c, int offset, int length)(Code) | | Get the size of the converted bytes as a Unicode
byte array.
Parameters: c - array of bytes to compute size Parameters: offset - offset in the provided buffer Parameters: length - length of bytes to process length of converted characters. |
skip | public long skip(long n) throws IOException(Code) | | Skip over a number of bytes in the input stream.
Parameters: n - number of bytes to bypass from the input stream. the number of characters skipped throws: IOException - if an I/O error occurs |
|
|