org.edg.data.reptor.storage
Class FileHandleFactory

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

public class FileHandleFactory
extends java.lang.Object

FileHandleFactory provides appropriate FileHandles based on file URIs provided

Version:
$Id: FileHandleFactory.java,v 1.21 2004/05/14 12:17:00 jamesc Exp $
Author:
Erwin Laure, Peter.Kunszt

Constructor Summary
FileHandleFactory()
           
 
Method Summary
static FileHandle create(java.net.URI uri, Configuration config)
          Construct a new FileHandle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHandleFactory

public FileHandleFactory()
Method Detail

create

public static FileHandle create(java.net.URI uri,
                                Configuration config)
                         throws FileHandleException,
                                StorageResourceException
Construct a new FileHandle.

Parameters:
uri - the file URI based upon which a file handle is to be created
Returns:
a new FileHandle
Throws:
FileHandleException - if we cannot construct the file handle
StorageResourceException - if we can't get the SE information for the host where the URI will exist