jist.runtime
Class ProxyPoint.StreamPump

java.lang.Object
  extended by jist.runtime.ProxyPoint.StreamPump
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ProxyPoint

public static class ProxyPoint.StreamPump
extends java.lang.Object
implements java.lang.Runnable

A Runnable object that pumps from an InputStream to an OutputStream.


Field Summary
private  java.io.InputStream in
          input stream to read from.
private  java.io.OutputStream out
          output stream to write to.
 
Constructor Summary
ProxyPoint.StreamPump(java.io.InputStream in, java.io.OutputStream out)
          Create new stream pump.
 
Method Summary
 void run()
          Pumps from input to output, until end-of-file or error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

private java.io.InputStream in
input stream to read from.


out

private java.io.OutputStream out
output stream to write to.

Constructor Detail

ProxyPoint.StreamPump

public ProxyPoint.StreamPump(java.io.InputStream in,
                             java.io.OutputStream out)
Create new stream pump.

Parameters:
in - input stream to read
out - output stream to write to
Method Detail

run

public void run()
Pumps from input to output, until end-of-file or error.

Specified by:
run in interface java.lang.Runnable