org.freehep.jas.plugin.console
Class ConsoleOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.freehep.jas.plugin.console.ConsoleOutputStream
All Implemented Interfaces:
Closeable, Flushable

public abstract class ConsoleOutputStream
extends OutputStream

An output stream returned by a console. No public functionality beyond a normal output stream. Note that this output stream will be closed when the corresponding console is closed, any further attempts to write to the output stream will return an IOException.

Version:
$Id: ConsoleOutputStream.java 14085 2012-12-13 18:37:19Z tonyj $
Author:
Tony Johnson (tonyj@slac.stanford.edu)

Method Summary
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException


Copyright © 2013. All Rights Reserved.