com.tc.lcp
Class StreamCopier

java.lang.Object
  extended by java.lang.Thread
      extended by com.tc.lcp.StreamCopier
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
StreamCollector

public class StreamCopier
extends java.lang.Thread

A simple thread that copies one stream to another. Useful for copying a process's output/error streams to this process's output/error streams.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  java.io.OutputStream out
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StreamCopier(java.io.InputStream stream, java.io.OutputStream out)
           
StreamCopier(java.io.InputStream stream, java.io.OutputStream out, java.lang.String identifier)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

out

protected final java.io.OutputStream out
Constructor Detail

StreamCopier

public StreamCopier(java.io.InputStream stream,
                    java.io.OutputStream out)

StreamCopier

public StreamCopier(java.io.InputStream stream,
                    java.io.OutputStream out,
                    java.lang.String identifier)
Method Detail

run

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


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.