org.edg.data.reptor.storage
Class FileCopier

java.lang.Object
  extended byorg.edg.data.reptor.storage.FileCopier

public class FileCopier
extends java.lang.Object

FileCopier abstracts out the various ways we can implement copy functionality between two FileHandles.

Version:
$Id: FileCopier.java,v 1.53 2004/12/16 15:38:34 jamesc Exp $
Author:
Erwin Laure, Peter Kunszt, Heinz Stockinger

Method Summary
static FileInfo copy(Configuration config, FileHandle source, FileHandle dest, java.lang.String protocol, int nstreams)
          Static copy method: copy source to destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copy

public static FileInfo copy(Configuration config,
                            FileHandle source,
                            FileHandle dest,
                            java.lang.String protocol,
                            int nstreams)
                     throws FileCopierException,
                            FileHandleException
Static copy method: copy source to destination.

Parameters:
source - The source file handle.
dest - The destination file handle.
nstreams - The number of streams(unimplemented.)
Throws:
FileCopierException - If the copy fails because: the URIs of the input file handles are invalid, the copy fails for some reason or the user is not authorized.
FileHandleException - if there is a problem with the source or destination file handle