bpp
Class PrintStringBufferWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.PrintWriter
          extended bybpp.PrintStringBufferWriter

public class PrintStringBufferWriter
extends java.io.PrintWriter

This is a java.io.PrintWriter built over an underlying bpp.StringBufferWriter. toString() and toStringBuffer() are overridden to return the current buffer's content.


Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
PrintStringBufferWriter()
           
PrintStringBufferWriter(int capacity)
           
PrintStringBufferWriter(java.lang.StringBuffer sb)
           
 
Method Summary
 java.lang.String toString()
           
 java.lang.StringBuffer toStringBuffer()
           
 
Methods inherited from class java.io.PrintWriter
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrintStringBufferWriter

public PrintStringBufferWriter()

PrintStringBufferWriter

public PrintStringBufferWriter(int capacity)

PrintStringBufferWriter

public PrintStringBufferWriter(java.lang.StringBuffer sb)
Method Detail

toString

public java.lang.String toString()

toStringBuffer

public java.lang.StringBuffer toStringBuffer()