|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs2.impl.PrivilegedFileReplicator
public class PrivilegedFileReplicator
A file replicator that wraps another file replicator, performing the replication as a privileged action.
Constructor Summary | |
---|---|
PrivilegedFileReplicator(FileReplicator replicator)
|
Method Summary | |
---|---|
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(Log logger)
Sets the Logger to use for the component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrivilegedFileReplicator(FileReplicator replicator)
Method Detail |
---|
public void setLogger(Log logger)
setLogger
in interface VfsComponent
logger
- The logger.public void setContext(VfsComponentContext context)
setContext
in interface VfsComponent
context
- The component context.public void init() throws FileSystemException
init
in interface VfsComponent
FileSystemException
- if an error occurs.public void close()
close
in interface VfsComponent
public java.io.File replicateFile(FileObject srcFile, FileSelector selector) throws FileSystemException
replicateFile
in interface FileReplicator
srcFile
- The source FileObject.selector
- The file selector.
FileSystemException
- if an error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |