ccc.commons.streams
Class CopyAction

java.lang.Object
  extended by ccc.commons.streams.CopyAction
All Implemented Interfaces:
StreamAction

public final class CopyAction
extends java.lang.Object
implements StreamAction

An action to copy from an input stream to an output stream.

Author:
Civic Computing Ltd.

Constructor Summary
CopyAction(java.io.OutputStream dataStream)
          Constructor.
 
Method Summary
 void execute(java.io.InputStream is)
          Execute the action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyAction

public CopyAction(java.io.OutputStream dataStream)
Constructor.

Parameters:
dataStream - The output stream to copy to.
Method Detail

execute

public void execute(java.io.InputStream is)
             throws java.io.IOException
Execute the action.

Specified by:
execute in interface StreamAction
Parameters:
is - The input stream to operate on.
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.