bpp
Class StringBufferWriter
java.lang.Object
java.io.Writer
bpp.StringBufferWriter
- public class StringBufferWriter
- extends java.io.Writer
A java.io.StringWriter with a few new features:
- You can pass it an existing StringBuffer to append to.
- The toString() method returns the current contents of
the string buffer
- The toStringBuffer() method returns the underlying string buffer.
Field Summary |
java.lang.StringBuffer |
sb
|
Fields inherited from class java.io.Writer |
lock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
sb
public java.lang.StringBuffer sb
close
public void close()
flush
public void flush()
write
public void write(char[] cbuf)
write
public void write(char[] cbuf,
int off,
int len)
write
public void write(int c)
write
public void write(java.lang.String str)
write
public void write(java.lang.String str,
int off,
int len)
toString
public java.lang.String toString()
toStringBuffer
public java.lang.StringBuffer toStringBuffer()