edu.cmu.emulator.io
Class StreamRelay

java.lang.Object
  extended by edu.cmu.emulator.io.StreamRelay
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
OutStreamLogger

public class StreamRelay
extends Object
implements Runnable


Field Summary
protected  byte[] buf
           
protected static int BUF_SIZE
           
protected  InputStream in
           
protected  OutputStream out
           
protected  boolean running
           
 
Constructor Summary
StreamRelay(InputStream in, OutputStream out)
           
 
Method Summary
 void run()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

running

protected boolean running

in

protected InputStream in

out

protected OutputStream out

buf

protected byte[] buf

BUF_SIZE

protected static final int BUF_SIZE
See Also:
Constant Field Values
Constructor Detail

StreamRelay

public StreamRelay(InputStream in,
                   OutputStream out)
Method Detail

start

public void start()

stop

public void stop()

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2013. All Rights Reserved.