org.edg.data.reptor.storage
Class FileCopier

java.lang.Object
  |
  +--org.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.34 2003/09/15 02:03:11 pkunszt Exp $
Author:
Erwin Laure, Peter Kunszt, Heinz Stockinger

Method Summary
static void copy(Configuration config, FileHandle source, FileHandle dest, int prot, 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 void copy(Configuration config,
                        FileHandle source,
                        FileHandle dest,
                        int prot,
                        int nstreams)
                 throws FileCopierException,
                        InvalidFileNameException,
                        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.
InvalidFileNameException
FileHandleException