org.jboss.maven.shared.process
Class StreamBridge

java.lang.Object
  extended by org.jboss.maven.shared.process.StreamBridge
All Implemented Interfaces:
java.lang.Runnable

public class StreamBridge
extends java.lang.Object
implements java.lang.Runnable

Bridges an input stream to an output stream.

This is used in system call handling because the output of the created process is actually represented as an input stream to our java process. Generally we need to 'pipe' this to an output stream (the console for example).

Author:
Steve Ebersole

Constructor Summary
StreamBridge(java.io.InputStream inputStream, java.io.OutputStream outputStream)
           
StreamBridge(java.io.InputStream inputStream, java.io.OutputStream outputStream, int bufferSize)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamBridge

public StreamBridge(java.io.InputStream inputStream,
                    java.io.OutputStream outputStream)

StreamBridge

public StreamBridge(java.io.InputStream inputStream,
                    java.io.OutputStream outputStream,
                    int bufferSize)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2007-2009 JBoss, a division of Red Hat, Inc. All Rights Reserved.