Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.util
Class LauncherOutputStream  view LauncherOutputStream download LauncherOutputStream.java

java.lang.Object
  extended byjava.io.OutputStream
      extended bycom.flexstor.common.util.LauncherOutputStream

public class LauncherOutputStream
extends java.io.OutputStream

Redirects all standard output and standard errors to a stream. Please note that this class will only work with the app launcher because all of the output is directed to a native method in the app launcher Native (C++) code.

Version:
2.2

Field Summary
private  java.lang.StringBuffer buf
           
 
Constructor Summary
LauncherOutputStream()
           
 
Method Summary
 void write(int i)
          This method writes a single byte to the output stream.
private  void writeToConsole(java.lang.String s)
           
 
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
 

Field Detail

buf

private java.lang.StringBuffer buf
Constructor Detail

LauncherOutputStream

public LauncherOutputStream()
Method Detail

writeToConsole

private void writeToConsole(java.lang.String s)

write

public void write(int i)
           throws java.io.IOException
Description copied from class: java.io.OutputStream
This method writes a single byte to the output stream. The byte written is the low eight bits of the int passed and a argument.

Subclasses must provide an implementation of this abstract method