org.openbp.swing.components
Class JConsole.GUIMappedOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.openbp.swing.components.JConsole.GUIMappedOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
JConsole

protected class JConsole.GUIMappedOutputStream
extends java.io.OutputStream

This output stream writes all output data to a text component.


Constructor Summary
JConsole.GUIMappedOutputStream(java.io.OutputStream out)
          Constructor.
 
Method Summary
 java.awt.Color getColor()
          Gets the text color.
 java.awt.Font getFont()
          Gets the display font.
 java.io.OutputStream getOut()
          Gets the stream to pass all output data to or null.
 void setColor(java.awt.Color color)
          Sets the text color.
 void setFont(java.awt.Font font)
          Sets the display font.
 void setOut(java.io.OutputStream out)
          Sets the stream to pass all output data to or null.
 void write(int b)
          Writes a byte to the text component.
 
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

JConsole.GUIMappedOutputStream

public JConsole.GUIMappedOutputStream(java.io.OutputStream out)
Constructor.

Parameters:
out - Stream to pass all output data to or null
Method Detail

write

public void write(int b)
           throws java.io.IOException
Writes a byte to the text component. All data will be interpreted as char.

Specified by:
write in class java.io.OutputStream
Parameters:
b - Byte to write
Throws:
java.io.IOException - Never

getOut

public java.io.OutputStream getOut()
Gets the stream to pass all output data to or null.


setOut

public void setOut(java.io.OutputStream out)
Sets the stream to pass all output data to or null.


getColor

public java.awt.Color getColor()
Gets the text color.


setColor

public void setColor(java.awt.Color color)
Sets the text color.


getFont

public java.awt.Font getFont()
Gets the display font.


setFont

public void setFont(java.awt.Font font)
Sets the display font.



Copyright © 2011. All Rights Reserved.