com.partnersoft.v3x.apps.Propagate
Interface FilePropagator
- All Known Implementing Classes:
- EmptyDirPropagator, PreferencesPropagator, ResourceFilePropagator, TreePropagator
public interface FilePropagator
A manager that decides when a file is out of date and how to update it. This
can be fairly complex for some files (e.g. root of a directory tree)
|
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. |
outOfDate
boolean outOfDate(java.io.File master,
java.io.File slave)
update
void update(java.io.File master,
java.io.File slave)
throws java.io.IOException
- Updates the slave from the master. In general, assumes that outOfDate()
or equivalent is called first (i.e., only updates if necessary)
- Throws:
java.io.IOException