com.ctc.wstx.io
Class UTFAttrValueWriter

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

public class UTFAttrValueWriter
extends WriterBase

Escaping writer that will properly escape characters from the attribute values that need to be escaped, when outputting using "native" Unicode aware Writer.


Field Summary
 
Fields inherited from class com.ctc.wstx.io.WriterBase
CHAR_NULL, CHAR_SPACE, HIGHEST_ENCODABLE_ATTR_CHAR, HIGHEST_ENCODABLE_TEXT_CHAR, mEntityBuffer
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
UTFAttrValueWriter(java.io.Writer out, java.lang.String enc, char qchar)
           
 
Method Summary
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 void write(java.lang.String str, int off, 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

UTFAttrValueWriter

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

write

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

write

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

write

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