org.mailster.gui.dialogs
Class ErrorDialog.StringPrintWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by org.mailster.gui.dialogs.ErrorDialog.StringPrintWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable
Enclosing class:
ErrorDialog

public static class ErrorDialog.StringPrintWriter
extends java.io.PrintWriter


Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
ErrorDialog.StringPrintWriter()
          Constructs a new instance.
ErrorDialog.StringPrintWriter(int initialSize)
          Constructs a new instance using the specified initial string-buffer size.
ErrorDialog.StringPrintWriter(java.lang.Throwable exception)
           
 
Method Summary
 java.lang.String getString()
          Since toString() returns information *about* this object, we want a separate method to extract just the contents of the internal buffer as a String.
 
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, 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, toString, wait, wait, wait
 

Constructor Detail

ErrorDialog.StringPrintWriter

public ErrorDialog.StringPrintWriter()
Constructs a new instance.


ErrorDialog.StringPrintWriter

public ErrorDialog.StringPrintWriter(int initialSize)
Constructs a new instance using the specified initial string-buffer size.

Parameters:
initialSize - an int specifying the initial size of the buffer.

ErrorDialog.StringPrintWriter

public ErrorDialog.StringPrintWriter(java.lang.Throwable exception)
Method Detail

getString

public java.lang.String getString()

Since toString() returns information *about* this object, we want a separate method to extract just the contents of the internal buffer as a String.

Returns:
the contents of the internal string buffer