| java.lang.Object com.caucho.vfs.i18n.EncodingWriter com.caucho.vfs.i18n.JAVAWriter
JAVAWriter | public class JAVAWriter extends EncodingWriter (Code) | | Implements an encoding char-to-byte writer for Java source generation
using the '\\uxxxx' escapes for non-ascii characters.
|
Constructor Summary | |
public | JAVAWriter() Null-arg constructor for instantiation by com.caucho.vfs.Encoding only. |
Method Summary | |
public EncodingWriter | create(String javaEncoding) Create a Java source-code writer using on the WriteStream to send bytes.
Parameters: os - the write stream receiving the bytes. Parameters: javaEncoding - the JDK name for the encoding. | public String | getJavaEncoding() Returns the encoding. | public void | write(OutputStreamWithBuffer os, char ch) Writes a character to the output stream with the correct encoding. | public void | write(OutputStreamWithBuffer os, char[] cbuf, int off, int len) Writes into a character buffer using the correct encoding. |
JAVAWriter | public JAVAWriter()(Code) | | Null-arg constructor for instantiation by com.caucho.vfs.Encoding only.
|
create | public EncodingWriter create(String javaEncoding)(Code) | | Create a Java source-code writer using on the WriteStream to send bytes.
Parameters: os - the write stream receiving the bytes. Parameters: javaEncoding - the JDK name for the encoding. the UTF-8 writer. |
getJavaEncoding | public String getJavaEncoding()(Code) | | Returns the encoding.
|
write | public void write(OutputStreamWithBuffer os, char[] cbuf, int off, int len) throws IOException(Code) | | Writes into a character buffer using the correct 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. |
|
|