ctf.view
Class Console

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.PrintStream
              extended by ctf.view.Console
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class Console
extends java.io.PrintStream

A console that we can send text (eg, System.out) to.


Nested Class Summary
protected  class Console.ConsoleFrame
          The frame that will contain the text area
 
Field Summary
protected  javax.swing.JTextArea text
          Where the messages actually get logged
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
Console()
           
Console(java.lang.String title)
           
 
Method Summary
 void setExitOnClose(boolean exitOnClose)
          Should the application exit when the Console frame closes?
 void write(byte[] data)
           
 void write(byte[] data, int offset, int length)
           
 
Methods inherited from class java.io.PrintStream
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

protected javax.swing.JTextArea text
Where the messages actually get logged

Constructor Detail

Console

public Console()

Console

public Console(java.lang.String title)
Method Detail

write

public void write(byte[] data)
Overrides:
write in class java.io.FilterOutputStream

write

public void write(byte[] data,
                  int offset,
                  int length)
Overrides:
write in class java.io.PrintStream

setExitOnClose

public void setExitOnClose(boolean exitOnClose)
Should the application exit when the Console frame closes?