| java.lang.Object java.io.Writer com.sun.cdc.i18n.StreamWriter com.sun.cdc.i18n.j2me.Gen_Writer
Gen_Writer | public class Gen_Writer extends StreamWriter (Code) | | Generic interface for stream conversion writing of
specific character encoded input streams.
.
|
Method Summary | |
public Writer | open(OutputStream out, String open_enc) Generic routine to open an OutputStream with a specific
character encoding. | public int | sizeOf(char[] cbuf, int off, int len) Get the size of the converted bytes as a Unicode
byte array. | public synchronized void | write(int c) Write a single converted character. | public synchronized void | write(char cbuf, int off, int len) Write a block of converted characters. | public synchronized void | write(String str, int off, int len) Write a block of converted characters from a string. |
sizeOf | public int sizeOf(char[] cbuf, int off, int len)(Code) | | Get the size of the converted bytes as a Unicode
byte array.
Parameters: cbuf - array of bytes to compute size Parameters: off - offset in the provided buffer Parameters: len - length of bytes to process length of converted characters. |
write | public synchronized void write(int c) throws IOException(Code) | | Write a single converted character.
Parameters: c - the character to be output exception: IOException - is thrown if the output stream could not be written with the converted bytes |
write | public synchronized void write(char cbuf, int off, int len) throws IOException(Code) | | Write a block of converted characters.
Parameters: cbuf - output buffer of characters to convert Parameters: off - initial offset into the provided buffer Parameters: len - length of characters in the buffer exception: IOException - is thrown if the output stream could not be written with the converted bytes |
write | public synchronized void write(String str, int off, int len) throws IOException(Code) | | Write a block of converted characters from a string.
Parameters: str - string to convert Parameters: off - initial offset into the string Parameters: len - length of characters in the string to process exception: IOException - is thrown if the output stream could not be written with the converted bytes |
|
|