com.partnersoft.v3x.apps.Propagate
Class TreePropagator

java.lang.Object
  extended by com.partnersoft.v3x.apps.Propagate.TreePropagator
All Implemented Interfaces:
FilePropagator

public class TreePropagator
extends java.lang.Object
implements FilePropagator

Propagates a entire tree of similar files. Delegates propagation of individual files to another propagator.


Constructor Summary
TreePropagator(FilePropagator subProp)
           
 
Method Summary
 boolean outOfDate(java.io.File master, java.io.File slave)
           
 void update(java.io.File master, java.io.File slave)
          Updates the slave from the master.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreePropagator

public TreePropagator(FilePropagator subProp)
Method Detail

outOfDate

public boolean outOfDate(java.io.File master,
                         java.io.File slave)
Specified by:
outOfDate in interface FilePropagator

update

public void update(java.io.File master,
                   java.io.File slave)
            throws java.io.IOException
Description copied from interface: FilePropagator
Updates the slave from the master. In general, assumes that outOfDate() or equivalent is called first (i.e., only updates if necessary)

Specified by:
update in interface FilePropagator
Throws:
java.io.IOException