org.apache.xml.serializer
Class ToStream.WritertoStringBuffer

java.lang.Object
  extended by java.io.Writer
      extended by org.apache.xml.serializer.ToStream.WritertoStringBuffer
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable
Enclosing class:
ToStream

private static class ToStream.WritertoStringBuffer
extends java.io.Writer

This inner class is used only to collect attribute values written by the method writeAttrString() into a string buffer. In this manner trace events, and the real writing of attributes will use the same code.


Field Summary
private  java.lang.StringBuffer m_stringbuf
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
ToStream.WritertoStringBuffer(java.lang.StringBuffer sb)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(char[] arg0, int arg1, int arg2)
           
 void write(int i)
           
 void write(java.lang.String s)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_stringbuf

private final java.lang.StringBuffer m_stringbuf
Constructor Detail

ToStream.WritertoStringBuffer

ToStream.WritertoStringBuffer(java.lang.StringBuffer sb)
See Also:
Writer.write(char[], int, int)
Method Detail

write

public void write(char[] arg0,
                  int arg1,
                  int arg2)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class java.io.Writer
Throws:
java.io.IOException
See Also:
Writer.flush()

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in class java.io.Writer
Throws:
java.io.IOException
See Also:
Writer.close()

write

public void write(int i)
Overrides:
write in class java.io.Writer

write

public void write(java.lang.String s)
Overrides:
write in class java.io.Writer