- java.lang.Object
-
- com.sshtools.vfs.ext.Sync
-
public class Sync extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSync.AlwaysCopyCheckerstatic interfaceSync.Checkerstatic interfaceSync.Completorstatic classSync.LastModifiedCheckerstatic classSync.Result
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncaddSource(org.apache.commons.vfs2.FileObject source)Sync.Checkerchecker()Syncchecker(Sync.Checker checker)Sync.Completorcompletor()Synccompletor(Sync.Completor decorator)booleandeleteRemoved()SyncdeleteRemoved(boolean deleteRemoved)org.apache.commons.vfs2.FileObjectdestination()Syncdestination(org.apache.commons.vfs2.FileObject destination)static voidmain(String[] args)booleanpreserveAttributes()SyncpreserveAttributes(boolean preserveAttributes)booleanrecursive()Syncrecursive(boolean recursive)List<org.apache.commons.vfs2.FileObject>sources()Syncsources(org.apache.commons.vfs2.FileObject... sources)voidsync()protected voidsync(org.apache.commons.vfs2.FileObject from, org.apache.commons.vfs2.FileObject to, int depth)protected voidsyncFile(org.apache.commons.vfs2.FileObject from, org.apache.commons.vfs2.FileObject to)
-
-
-
Method Detail
-
completor
public Sync.Completor completor()
-
completor
public Sync completor(Sync.Completor decorator)
-
sources
public Sync sources(org.apache.commons.vfs2.FileObject... sources)
-
addSource
public Sync addSource(org.apache.commons.vfs2.FileObject source)
-
sources
public List<org.apache.commons.vfs2.FileObject> sources()
-
destination
public Sync destination(org.apache.commons.vfs2.FileObject destination)
-
destination
public org.apache.commons.vfs2.FileObject destination()
-
deleteRemoved
public Sync deleteRemoved(boolean deleteRemoved)
-
deleteRemoved
public boolean deleteRemoved()
-
recursive
public Sync recursive(boolean recursive)
-
recursive
public boolean recursive()
-
preserveAttributes
public Sync preserveAttributes(boolean preserveAttributes)
-
preserveAttributes
public boolean preserveAttributes()
-
checker
public Sync.Checker checker()
-
checker
public Sync checker(Sync.Checker checker)
-
sync
public void sync() throws IOException- Throws:
IOException
-
sync
protected void sync(org.apache.commons.vfs2.FileObject from, org.apache.commons.vfs2.FileObject to, int depth) throws IOException- Throws:
IOException
-
syncFile
protected void syncFile(org.apache.commons.vfs2.FileObject from, org.apache.commons.vfs2.FileObject to) throws IOException- Throws:
IOException
-
-