All Packages  This Package  Class Hierarchy  Class Search  Index

Class kh.io.FileMerge
java.lang.Object
   |
   +----kh.io.FileMerge

  Summary

public class  FileMerge
     extends java.lang.Object
{
          // Constructors 1
     public FileMerge(FileMergeListener);

          // Methods 5
     public void doBothChildren(FileInfo, FileInfo) throws IOException;
     public void doMerge(FileInfo, FileInfo) throws IOException;
     protected void setCallback(FileMergeListener);
     public void setRecurseOnLeft(boolean);
     public void setRecurseOnRight(boolean);
}

This class will merge two FileInfo trees - invoking methods on a provided FileMergeListener for each file which differs between the two trees.


  Cross Reference

Extended By:
URLMerge





  Constructors

· FileMerge

Summary  |  Top
   public FileMerge(FileMergeListener callback) 


  Methods

· doBothChildren

Summary  |  Top
   public void doBothChildren(FileInfo left, 
                              FileInfo right)  throws IOException

Called to recurse when both entries are matching directory names.



· doMerge

Summary  |  Top
   public void doMerge(FileInfo left, 
                       FileInfo right)  throws IOException

This is the main entry point for this class - performs a merge, calling the callback for each file it locates



· setCallback

Summary  |  Top
   protected void setCallback(FileMergeListener callback) 

Support delayed specification of the callback - necessary when subclasses must create themselves before creating the callback.



· setRecurseOnLeft

Summary  |  Top
   public void setRecurseOnLeft(boolean yes) 

Determines if we should recurse into the left directory when no right directory exists

Defaults to no recursion



· setRecurseOnRight

Summary  |  Top
   public void setRecurseOnRight(boolean yes) 

Determines if we should recurse into the right directory when no left directory exists

Defaults to no recursion



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7