|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.vfs.i18n.EncodingWriter
com.caucho.vfs.i18n.JAVAWriter
public class JAVAWriter
Implements an encoding char-to-byte writer for Java source generation using the '\\uxxxx' escapes for non-ascii characters.
| Field Summary |
|---|
| Fields inherited from class com.caucho.vfs.i18n.EncodingWriter |
|---|
log |
| Constructor Summary | |
|---|---|
JAVAWriter()
Null-arg constructor for instantiation by com.caucho.vfs.Encoding only. |
|
| Method Summary | |
|---|---|
EncodingWriter |
create(java.lang.String javaEncoding)
Create a Java source-code writer using on the WriteStream to send bytes. |
java.lang.String |
getJavaEncoding()
Returns the encoding. |
void |
write(ByteAppendable os,
char ch)
Writes a character to the output stream with the correct encoding. |
void |
write(OutputStreamWithBuffer os,
char[] cbuf,
int off,
int len)
Writes into a character buffer using the correct encoding. |
| Methods inherited from class com.caucho.vfs.i18n.EncodingWriter |
|---|
create, setJavaEncoding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JAVAWriter()
| Method Detail |
|---|
public java.lang.String getJavaEncoding()
getJavaEncoding in class EncodingWriterpublic EncodingWriter create(java.lang.String javaEncoding)
create in class EncodingWriteros - the write stream receiving the bytes.javaEncoding - the JDK name for the encoding.
public void write(ByteAppendable os,
char ch)
throws java.io.IOException
write in class EncodingWriterch - the character to write.
java.io.IOException
public void write(OutputStreamWithBuffer os,
char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class EncodingWritercbuf - character array with the data to write.off - starting offset into the character array.len - the number of characters to write.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||