org.openide.windows
Class OutputWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--java.io.PrintWriter
              |
              +--org.openide.windows.OutputWriter
Direct Known Subclasses:
InputOutput.NullOutputWriter

public abstract class OutputWriter
extends PrintWriter

A print writer with a few hooks for the Output Window.


Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
protected OutputWriter(Writer w)
          Make an output writer.
 
Method Summary
abstract  void println(String s, OutputListener l)
          Print a line.
abstract  void reset()
          Clear the output pane.
 
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, toString, wait, wait, wait
 

Constructor Detail

OutputWriter

protected OutputWriter(Writer w)
Make an output writer.
Parameters:
w - the underlying writer
Method Detail

println

public abstract void println(String s,
                             OutputListener l)
                      throws IOException
Print a line.
Parameters:
s - a string to print to the tab
l - a listener that will receive events about this line
Throws:
IOException - if the string could not be printed

reset

public abstract void reset()
                    throws IOException
Clear the output pane.
Throws:
IOException - if there is a problem


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.