Version: 1.1.1

org.biomoby.service.dashboard
Class ConsoleStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.biomoby.service.dashboard.ConsoleStream
All Implemented Interfaces:
Closeable, Flushable

public class ConsoleStream
extends OutputStream

A simple stream writing data into given CommonConsole component.

Version:
$Id: ConsoleStream.java,v 1.2 2006/02/20 05:51:10 senger Exp $
Author:
Martin Senger

Constructor Summary
ConsoleStream(CommonConsole console, boolean isErrorStream)
          A usual constructor.
 
Method Summary
 void write(int b)
          TBD: I am still not sure - my code does not seem to be optimalized.
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleStream

public ConsoleStream(CommonConsole console,
                     boolean isErrorStream)
A usual constructor.

Parameters:
console - where to stream will write
isErrorStream - true if the stream contains error messages (so it can distinguish it by some colors, possibly)
Method Detail

write

public void write(int b)
           throws IOException
TBD: I am still not sure - my code does not seem to be optimalized. Anybody can help me and improve it?

Specified by:
write in class OutputStream
Throws:
IOException

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010