public class VfsRepository extends AbstractRepository
Constructor and Description |
---|
VfsRepository()
Create a new Ivy VFS Repository Instance
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
void |
get(java.lang.String srcVfsURI,
java.io.File destination)
Transfer a VFS Resource from the repository to the local file system.
|
Resource |
getResource(java.lang.String vfsURI)
Get a VfsResource
|
java.util.List |
list(java.lang.String vfsURI)
Return a listing of the contents of a parent directory.
|
void |
put(java.io.File source,
java.lang.String vfsURI,
boolean overwrite)
Transfer an Ivy resource to a VFS repository
|
addTransferListener, fireTransferCompleted, fireTransferCompleted, fireTransferError, fireTransferError, fireTransferEvent, fireTransferInitiated, fireTransferProgress, fireTransferStarted, fireTransferStarted, getFileSeparator, getName, hasTransferListener, put, removeTransferListener, setName, standardize, toString
protected void finalize()
finalize
in class java.lang.Object
public Resource getResource(java.lang.String vfsURI) throws java.io.IOException
source
- a String
identifying a VFS ResourceIOException
- on failurejava.io.IOException
- On error while trying to get resource.public void get(java.lang.String srcVfsURI, java.io.File destination) throws java.io.IOException
srcVfsURI
- a String
identifying the VFS resource to be fetcheddestination
- a File
identifying the destination fileIOException
- on failurejava.io.IOException
- On retrieval failure.public java.util.List list(java.lang.String vfsURI) throws java.io.IOException
vfsURI
- providing identifying a VFS provided resourcejava.io.IOException
- on failure.public void put(java.io.File source, java.lang.String vfsURI, boolean overwrite) throws java.io.IOException
put
in class AbstractRepository
source
- a File
indentifying the local file to transfer to the repositoryvfsURI
- a String
identifying the destination VFS Resource.overwrite
- whether to overwrite an existing resource.IOException
- on failure.java.io.IOException