com.ctc.wstx.io
public class SingleByteTextWriter extends WriterBase
CHAR_NULL, CHAR_SPACE, HIGHEST_ENCODABLE_ATTR_CHAR, HIGHEST_ENCODABLE_TEXT_CHAR, mEntityBuffer, STR_ESCAPED_CR
Constructor and Description |
---|
SingleByteTextWriter(java.io.Writer out,
java.lang.String enc,
int charsetSize) |
Modifier and Type | Method and Description |
---|---|
void |
write(char[] cbuf,
int offset,
int len) |
void |
write(int c) |
void |
write(java.lang.String str,
int offset,
int len) |
getQuoteEntity, throwNullChar, writeAsEntity
public SingleByteTextWriter(java.io.Writer out, java.lang.String enc, int charsetSize)
out
- Underlying Writer to use for actual writesenc
- Encoding that the Writer is usingcharsetSize
- Number of Unicode characters (starting
with the null one) that need not be escaped (for example,
128 for US-ASCII, 256 for ISO-Latin etc)public void write(int c) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
public void write(char[] cbuf, int offset, int len) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
public void write(java.lang.String str, int offset, int len) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException