|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.test.repository.TrafficForwarder
public class TrafficForwarder
A TrafficForwarder forwards the traffic from an input stream to an output stream.
Constructor Summary | |
---|---|
TrafficForwarder(java.io.InputStream istream,
java.io.OutputStream ostream,
int size)
Constructs an instance of a TrafficForwarder. |
Method Summary | |
---|---|
void |
run()
Starts the actual transfer from the input to the output stream. |
void |
stop()
Stops the transfer from the input to the output stream by closing the input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrafficForwarder(java.io.InputStream istream, java.io.OutputStream ostream, int size)
run
method.
istream
- the input stream which will be readostream
- the output stream to write tosize
- the size of the buffer to use during the transferMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |