com.partnersoft.v3x.apps.Propagate
Class EmptyDirPropagator

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

public class EmptyDirPropagator
extends java.lang.Object
implements FilePropagator

A FilePropagator for "empty" directories (usually for data or whatever).


Constructor Summary
EmptyDirPropagator()
           
 
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

EmptyDirPropagator

public EmptyDirPropagator()
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