com.caucho.vfs.i18n
Class JDKWriter

java.lang.Object
  extended by com.caucho.vfs.i18n.EncodingWriter
      extended by com.caucho.vfs.i18n.JDKWriter

public class JDKWriter
extends EncodingWriter

Factory for JDK-based encoding writers.


Field Summary
 
Fields inherited from class com.caucho.vfs.i18n.EncodingWriter
log
 
Constructor Summary
JDKWriter()
          Null-arg constructor for instantiation by com.caucho.vfs.Encoding only.
 
Method Summary
 EncodingWriter create(java.lang.String javaEncoding)
          Create a JDK-based reader.
 java.lang.String getJavaEncoding()
          Returns the Java encoding for the writer.
 void setJavaEncoding(java.lang.String encoding)
          Sets the Java encoding for the writer.
 void write(ByteAppendable os, char ch)
          JDKWriter is only a factory.
 
Methods inherited from class com.caucho.vfs.i18n.EncodingWriter
create, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDKWriter

public JDKWriter()
Null-arg constructor for instantiation by com.caucho.vfs.Encoding only.

Method Detail

getJavaEncoding

public java.lang.String getJavaEncoding()
Returns the Java encoding for the writer.

Overrides:
getJavaEncoding in class EncodingWriter

setJavaEncoding

public void setJavaEncoding(java.lang.String encoding)
Sets the Java encoding for the writer.

Overrides:
setJavaEncoding in class EncodingWriter

create

public EncodingWriter create(java.lang.String javaEncoding)
Create a JDK-based reader.

Specified by:
create in class EncodingWriter
Parameters:
javaEncoding - the JDK name for the encoding.
Returns:
an EncodingWriter

write

public void write(ByteAppendable os,
                  char ch)
           throws java.io.IOException
JDKWriter is only a factory.

Specified by:
write in class EncodingWriter
ch - the character to write
Throws:
java.io.IOException