org.edg.data.reptor.storage
Class FileCacher

java.lang.Object
  |
  +--org.edg.data.reptor.storage.FileCacher

public class FileCacher
extends java.lang.Object

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

Version:
$Id: FileCacher.java,v 1.4 2003/09/15 02:03:11 pkunszt Exp $
Author:
Erwin Laure, Peter Kunszt, Gavin McCance

Method Summary
static java.net.URI cache(Configuration config, java.net.URI source, int prot)
          Static cache method: cache the file on the storage and return the TURL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cache

public static java.net.URI cache(Configuration config,
                                 java.net.URI source,
                                 int prot)
                          throws org.edg.data.util.InvalidFileTypeException,
                                 FileCacherException
Static cache method: cache the file on the storage and return the TURL.

Parameters:
source - The SURL to cache.
Returns:
URI TURL The trabsfer URL.
org.edg.data.util.InvalidFileTypeException
FileCacherException