au.com.zip.cs
Class ByteCopier

java.lang.Object
  extended by au.com.zip.cs.ByteCopier
All Implemented Interfaces:
Runnable

public class ByteCopier
extends Object
implements Runnable

A class to copy data from a byte source to a sink.


Constructor Summary
ByteCopier(InputStream r, OutputStream w)
          Make a new ByteCopier.
 
Method Summary
 void abort()
          Make this copier inactive.
 boolean isActive()
          Test whether this copier is active.
 void run()
          Copy the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteCopier

public ByteCopier(InputStream r,
                  OutputStream w)
Make a new ByteCopier.

Parameters:
r - the input source
w - the output sink
Method Detail

run

public void run()
Copy the data.

Specified by:
run in interface Runnable

isActive

public boolean isActive()
Test whether this copier is active.

Returns:
wether this copier is active

abort

public void abort()
Make this copier inactive.