org.apache.commons.vfs.provider
Interface FileReplicator

All Known Implementing Classes:
DefaultFileReplicator, PrivilegedFileReplicator

public interface FileReplicator

Responsible for making local replicas of files.

A file replicator may also implement VfsComponent.

Version:
$Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29 Nov 2006) $
Author:
Adam Murdoch

Method Summary
 File replicateFile(FileObject srcFile, FileSelector selector)
          Creates a local copy of the file, and all its descendents.
 

Method Detail

replicateFile

public File replicateFile(FileObject srcFile,
                          FileSelector selector)
                   throws FileSystemException
Creates a local copy of the file, and all its descendents.

Parameters:
srcFile - The file to copy.
selector - Selects the files to copy.
Returns:
The local copy of the source file.
Throws:
FileSystemException - If the source files does not exist, or on error copying.


Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.