Package net.sourceforge.javautil.common.io

Examples of net.sourceforge.javautil.common.io.OutputStreamRegistry


 
  public ExecutableController(Process process, String... execution) { this(process, null, execution); }
  public ExecutableController(Process process, InputStream input, String... execution) {
    this.process = process;
    this.execution = execution;
    this.registry = new OutputStreamRegistry();
   
    if (input != null) this.setInput(input);
   
    new Thread(this.running = new ProcessRunning(), "Running Watcher [" + StringUtil.join(execution, ' ') + "]").start();
    new Thread(new ProcessOutput(), "Output Watcher [" + StringUtil.join(execution, ' ') + "]").start();
View Full Code Here


    originalErr = System.err;
    originalArguments = args;
   
    String stdout = this.getSetting(MAIN_OUTPUT);
    if (stdout != null && "false".equalsIgnoreCase(stdout)) {
      outputRegistry = new OutputStreamRegistry();

      System.setOut( new PrintStream( outputRegistry.getStream("System.out", true), true ) );
      System.setErr( new PrintStream( outputRegistry.getStream("System.err", true), true ) );
     
      outputRegistry.addListener("System.out", originalOut, false);
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.common.io.OutputStreamRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.