public final class ISO8859_1Writer extends EncodingWriter
log
Constructor and Description |
---|
ISO8859_1Writer()
Null-arg constructor for instantiation by com.caucho.vfs.Encoding only.
|
Modifier and Type | Method and Description |
---|---|
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.
|
int |
write(OutputStreamWithBuffer os,
char[] cBuf,
int cOffset,
int cLength)
Writes a character buffer using the correct encoding.
|
setJavaEncoding
public ISO8859_1Writer()
public java.lang.String getJavaEncoding()
getJavaEncoding
in class EncodingWriter
public EncodingWriter create(java.lang.String javaEncoding)
create
in class EncodingWriter
javaEncoding
- the JDK name for the encoding.public EncodingWriter create()
create
in class EncodingWriter
public static EncodingWriter getStaticWriter()
public void write(ByteAppendable os, char ch) throws java.io.IOException
write
in class EncodingWriter
ch
- the character to write.java.io.IOException
public int write(OutputStreamWithBuffer os, char[] cBuf, int cOffset, int cLength) throws java.io.IOException
write
in class EncodingWriter
os
- output stream for data.cBuf
- data.cOffset
- starting offset into the buffer.cLength
- number of characters to writejava.io.IOException