com.ctc.wstx.io
Class SingleByteAttrValueWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.FilterWriter
          extended bycom.ctc.wstx.io.WriterBase
              extended bycom.ctc.wstx.io.SingleByteAttrValueWriter

public class SingleByteAttrValueWriter
extends WriterBase

Escaping writer that will properly escape characters of the attribute values that need to be escaped, when outputting using a Writer that produces a subset of Unicode values. When underlying Writer only allows for direct outputting of a subset of Unicode values, it is generally done so that only lowest Unicode characters (7-bit ones for Ascii, 8-bit ones for ISO-Latin, something similar for other ISO-8859-1 encodings) can be output as is, and the rest need to be output as character entities.


Field Summary
 
Fields inherited from class com.ctc.wstx.io.WriterBase
CHAR_NULL, CHAR_SPACE, HIGHEST_ENCODABLE_ATTR_CHAR, HIGHEST_ENCODABLE_TEXT_CHAR, mEntityBuffer, STR_ESCAPED_CR
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
SingleByteAttrValueWriter(java.io.Writer out, java.lang.String enc, char qchar, int charsetSize)
           
 
Method Summary
 void write(char[] cbuf, int offset, int len)
           
 void write(int c)
           
 void write(java.lang.String str, int offset, int len)
           
 
Methods inherited from class com.ctc.wstx.io.WriterBase
getQuoteEntity, throwNullChar, writeAsEntity
 
Methods inherited from class java.io.FilterWriter
close, flush
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleByteAttrValueWriter

public SingleByteAttrValueWriter(java.io.Writer out,
                                 java.lang.String enc,
                                 char qchar,
                                 int charsetSize)
Method Detail

write

public void write(int c)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(char[] cbuf,
                  int offset,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.lang.String str,
                  int offset,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException