Class Sync


  • public class Sync
    extends Object
    • Constructor Detail

      • Sync

        public Sync()
      • Sync

        public Sync​(org.apache.commons.vfs2.FileObject destination,
                    org.apache.commons.vfs2.FileObject... sources)
    • Method Detail

      • 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()
      • 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