public class FileIDFactory extends Object implements IFileIDFactory
| Modifier and Type | Field and Description |
|---|---|
protected static FileIDFactory |
instance |
| Constructor and Description |
|---|
FileIDFactory() |
| Modifier and Type | Method and Description |
|---|---|
IFileID |
createFileID(Namespace namespace,
Object[] arguments)
Create an IFileID from a Namespace and a String.
|
IFileID |
createFileID(Namespace namespace,
String remoteFile)
Create an IFileID from a Namespace and a String.
|
IFileID |
createFileID(Namespace namespace,
URI remoteFile)
Create an IFileID from a Namespace and a String.
|
IFileID |
createFileID(Namespace namespace,
URL remoteFile)
Create an IFileID from a Namespace and a String.
|
static FileIDFactory |
getDefault()
Get singleton instance
|
protected static FileIDFactory instance
public static FileIDFactory getDefault()
null.public IFileID createFileID(Namespace namespace, URL remoteFile) throws FileCreateException
createFileID in interface IFileIDFactorynamespace - the namespace to use to create the IFileID. Can use
IRetrieveFileTransferContainerAdapter.getRetrieveNamespace().
Must not be null.remoteFile - the remote filename to use. Must not be null.null.FileCreateException - thrown if some problem creating IFileID from given namespace
and filenamepublic IFileID createFileID(Namespace namespace, String remoteFile) throws FileCreateException
createFileID in interface IFileIDFactorynamespace - the namespace to use to create the IFileID. Can use
IRetrieveFileTransferContainerAdapter.getRetrieveNamespace().
Must not be null.remoteFile - the remote filename to use. Must not be null.null.FileCreateException - thrown if some problem creating IFileID from given namespace
and filenamepublic IFileID createFileID(Namespace namespace, URI remoteFile) throws FileCreateException
createFileID in interface IFileIDFactorynamespace - the namespace to use to create the IFileID. Can use
IRetrieveFileTransferContainerAdapter.getRetrieveNamespace().
Must not be null.remoteFile - the remote resource identifier to use. Must not be null.null.FileCreateException - thrown if some problem creating IFileID from given namespace
and filenamepublic IFileID createFileID(Namespace namespace, Object[] arguments) throws FileCreateException
createFileID in interface IFileIDFactorynamespace - the namespace to use to create the IFileID. Can use
IRetrieveFileTransferContainerAdapter.getRetrieveNamespace().
Must not be null.arguments - Object [] of arguments to use to create file ID. These
arguments will be passed to the
Namespace.createInstance(Object[]) method of the
appropriate Namespace setup by the providernull.FileCreateException - thrown if some problem creating IFileID from given namespace
and filenameCopyright © 2004–2020 Eclipse Foundation. All rights reserved.