| java.lang.Object com.caucho.vfs.i18n.EncodingWriter com.caucho.vfs.i18n.UTF16Writer
UTF16Writer | public class UTF16Writer extends EncodingWriter (Code) | | Implements an encoding char-to-byte writer for UTF16 and the associated
factory.
|
Constructor Summary | |
public | UTF16Writer() Null-arg constructor for instantiation by com.caucho.vfs.Encoding only. |
Method Summary | |
public EncodingWriter | create(String javaEncoding) Create a UTF-16 writer using on the WriteStream to send bytes.
Parameters: javaEncoding - the JDK name for the encoding. | public void | write(OutputStreamWithBuffer os, char ch) Writes the character using the correct encoding. | public void | write(OutputStreamWithBuffer os, char[] cbuf, int off, int len) Writes a character buffer using the UTF-16 encoding. |
UTF16Writer | public UTF16Writer()(Code) | | Null-arg constructor for instantiation by com.caucho.vfs.Encoding only.
|
create | public EncodingWriter create(String javaEncoding)(Code) | | Create a UTF-16 writer using on the WriteStream to send bytes.
Parameters: javaEncoding - the JDK name for the encoding. the UTF-16 writer. |
write | public void write(OutputStreamWithBuffer os, char[] cbuf, int off, int len) throws IOException(Code) | | Writes a character buffer using the UTF-16 encoding.
Parameters: cbuf - character array with the data to write. Parameters: off - starting offset into the character array. Parameters: len - the number of characters to write. |
|
|