com.caucho.vfs.i18n
Class ISO8859_1Writer

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

public final class ISO8859_1Writer
extends EncodingWriter

Implements the ISO-8859-1 EncodingWriter factory.


Field Summary
 
Fields inherited from class com.caucho.vfs.i18n.EncodingWriter
log
 
Constructor Summary
ISO8859_1Writer()
          Null-arg constructor for instantiation by com.caucho.vfs.Encoding only.
 
Method Summary
 EncodingWriter create()
          Returns null, since WriteStream handles ISO-8859-1 directly.
 EncodingWriter create(java.lang.String javaEncoding)
          Returns null, since WriteStream handles ISO-8859-1 directly.
 java.lang.String getJavaEncoding()
          Returns the Java encoding for the writer.
static EncodingWriter getStaticWriter()
          Returns the writer.
 void write(ByteAppendable os, char ch)
          Writes a character to the output stream with the correct encoding.
 void write(OutputStreamWithBuffer os, char[] cBuf, int cOffset, int cLength)
          Writes a character buffer using the correct encoding.
 
Methods inherited from class com.caucho.vfs.i18n.EncodingWriter
setJavaEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISO8859_1Writer

public ISO8859_1Writer()
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

create

public EncodingWriter create(java.lang.String javaEncoding)
Returns null, since WriteStream handles ISO-8859-1 directly.

Specified by:
create in class EncodingWriter
Parameters:
javaEncoding - the JDK name for the encoding.
Returns:
null for ISO-8859-1

create

public EncodingWriter create()
Returns null, since WriteStream handles ISO-8859-1 directly.

Overrides:
create in class EncodingWriter
Returns:
null for ISO-8859-1

getStaticWriter

public static EncodingWriter getStaticWriter()
Returns the writer.


write

public void write(ByteAppendable os,
                  char ch)
           throws java.io.IOException
Writes a character to the output stream with the correct encoding.

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

write

public void write(OutputStreamWithBuffer os,
                  char[] cBuf,
                  int cOffset,
                  int cLength)
           throws java.io.IOException
Writes a character buffer using the correct encoding.

Overrides:
write in class EncodingWriter
Parameters:
os - output stream for data.
cBuf - data.
cOffset - starting offset into the buffer.
cLength - number of characters to write
Throws:
java.io.IOException