Class VfsRepository

java.lang.Object
org.apache.ivy.plugins.repository.AbstractRepository
org.apache.ivy.plugins.repository.vfs.VfsRepository
All Implemented Interfaces:
Repository

public class VfsRepository extends AbstractRepository
Implementation of a VFS repository
  • Constructor Details

    • VfsRepository

      public VfsRepository()
      Create a new Ivy VFS Repository Instance
    • VfsRepository

      public VfsRepository(TimeoutConstraint timeoutConstraint)
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • getResource

      public Resource getResource(String vfsURI) throws IOException
      Get a VfsResource
      Parameters:
      vfsURI - a String identifying a VFS Resource
      Returns:
      Resource
      Throws:
      IOException - on failure
      See Also:
      • "Supported File Systems in the jakarta-commons-vfs documentation"
    • get

      public void get(String srcVfsURI, File destination) throws IOException
      Transfer a VFS Resource from the repository to the local file system.
      Parameters:
      srcVfsURI - a String identifying the VFS resource to be fetched
      destination - a File identifying the destination file
      Throws:
      IOException - on failure
      See Also:
      • "Supported File Systems in the jakarta-commons-vfs documentation"
    • list

      public List<String> list(String vfsURI) throws IOException
      Return a listing of the contents of a parent directory. Listing is a set of strings representing VFS URIs.
      Parameters:
      vfsURI - providing identifying a VFS provided resource
      Returns:
      List
      Throws:
      IOException - on failure.
      See Also:
      • "Supported File Systems in the jakarta-commons-vfs documentation"
    • put

      public void put(File source, String vfsURI, boolean overwrite) throws IOException
      Transfer an Ivy resource to a VFS repository
      Overrides:
      put in class AbstractRepository
      Parameters:
      source - a File identifying the local file to transfer to the repository
      vfsURI - a String identifying the destination VFS Resource.
      overwrite - whether to overwrite an existing resource.
      Throws:
      IOException - on failure.
      See Also:
      • "Supported File Systems in the jakarta-commons-vfs documentation"