Class DjVuConsole

java.lang.Object
  extended by java.io.OutputStream
      extended by DjVuConsole
All Implemented Interfaces:
java.awt.event.WindowListener, java.io.Closeable, java.io.Flushable, java.util.EventListener

public class DjVuConsole
extends java.io.OutputStream
implements java.awt.event.WindowListener

This class implements a simple Java Console for use on platforms which have no other console.

Author:
docbill

Constructor Summary
DjVuConsole()
          Creates a new instance of DjVuConsole
 
Method Summary
 void windowActivated(java.awt.event.WindowEvent e)
          Called when the window is activated.
 void windowClosed(java.awt.event.WindowEvent e)
          Called when the window is closed.
 void windowClosing(java.awt.event.WindowEvent e)
          Called when the window is closing.
 void windowDeactivated(java.awt.event.WindowEvent e)
          Called when the window is deactivated.
 void windowDeiconified(java.awt.event.WindowEvent e)
          Called when the window is deiconified.
 void windowIconified(java.awt.event.WindowEvent e)
          Called when the window is iconified.
 void windowOpened(java.awt.event.WindowEvent e)
          Called when the window is opened
 void write(int c)
          Write the specified character to the console window.
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DjVuConsole

public DjVuConsole()
Creates a new instance of DjVuConsole

Method Detail

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Called when the window is closing.

Specified by:
windowClosing in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Called when the window is activated.

Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Called when the window is closed.

Specified by:
windowClosed in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Called when the window is deactivated.

Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Called when the window is deiconified.

Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Called when the window is iconified.

Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Called when the window is opened

Specified by:
windowOpened in interface java.awt.event.WindowListener

write

public void write(int c)
Write the specified character to the console window.

Specified by:
write in class java.io.OutputStream
Parameters:
c - the character to write