org.edg.data.reptor.storage
Class FileHandleFactory

java.lang.Object
  |
  +--org.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.12 2003/09/15 02:03:11 pkunszt 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 InvalidFileNameException,
                                FileHandleException,
                                InfoServiceException
Construct a new FileHandle.

Parameters:
uri - the file URI based upon which a file handle is to be created
Returns:
a new FileHandle
Throws:
InvalidFileNameException - if the uri is not a legal URI in some sense
FileHandleException - if the protocol is unsupported
InfoServiceException