| java.lang.Object java.io.Writer com.sun.cdc.i18n.StreamWriter com.sun.cdc.i18n.j2me.UTF_16BE_Writer
All known Subclasses: com.sun.cdc.i18n.j2me.UTF_16_Writer, com.sun.cdc.i18n.j2me.UTF_16LE_Writer,
UTF_16BE_Writer | public class UTF_16BE_Writer extends com.sun.cdc.i18n.StreamWriter (Code) | | Writer for Big Endian UTF-16 encoded output streams.
We assume that character strings
are correctly converted to UFT-16, so no additional checking is performed.
|
Method Summary | |
protected void | charToBytes(int inputChar, byte[] outputBytes) Convert a 16-bit character into two bytes. | public int | sizeOf(char[] array, int offset, int length) Get the size in bytes of an array of chars. | public void | write(char cbuf, int off, int len) Write a portion of an array of characters. |
charToBytes | protected void charToBytes(int inputChar, byte[] outputBytes)(Code) | | Convert a 16-bit character into two bytes.
(This class uses the Big Endian byte order);
Parameters: inputChar - character to convert Parameters: outputBytes - the array receiving the two bytes |
sizeOf | public int sizeOf(char[] array, int offset, int length)(Code) | | Get the size in bytes of an array of chars.
Parameters: array - Source buffer Parameters: offset - Offset at which to start counting character sizes Parameters: length - number of bytes to use for counting number of bytes that the characters would be converted to |
write | public void write(char cbuf, int off, int len) throws IOException(Code) | | Write a portion of an array of characters.
Parameters: cbuf - Array of characters Parameters: off - Offset from which to start writing characters Parameters: len - Number of characters to write exception: IOException - If an I/O error occurs |
|
|