public class PrivilegedFileReplicator extends java.lang.Object implements FileReplicator, VfsComponent
| Constructor and Description |
|---|
PrivilegedFileReplicator(FileReplicator replicator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the replicator.
|
void |
init()
Initialises the component.
|
java.io.File |
replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendents.
|
void |
setContext(VfsComponentContext context)
Sets the context for the replicator.
|
void |
setLogger(org.apache.commons.logging.Log logger)
Sets the Logger to use for the component.
|
public PrivilegedFileReplicator(FileReplicator replicator)
public void setLogger(org.apache.commons.logging.Log logger)
setLogger in interface VfsComponentpublic void setContext(VfsComponentContext context)
setContext in interface VfsComponentcontext - The context.public void init()
throws FileSystemException
init in interface VfsComponentFileSystemExceptionpublic void close()
close in interface VfsComponentpublic java.io.File replicateFile(FileObject srcFile, FileSelector selector) throws FileSystemException
replicateFile in interface FileReplicatorsrcFile - The file to copy.selector - Selects the files to copy.FileSystemException - If the source files does not exist, or on error copying.