All Packages  This Package  Class Hierarchy  Class Search  Index

Interface kh.io.FileMergeListener

  Summary

public interface  FileMergeListener
{
          // Fields 11
     public static final int DIFFERENT_TYPES;
     public static final int ENTER_DIR;
     public static final int EXIT_DIR;
     public static final int FILES_SAME;
     public static final int NEWER_IN_LEFT;
     public static final int NEWER_IN_RIGHT;
     public static final int ONLY_IN_LEFT;
     public static final int ONLY_IN_RIGHT;
     public static final int UNKNOWN;
     public static final int WRONG_SIZES;
     public static final String[] diffNames;

          // Methods 1
     public abstract boolean handleMerge(int, FileInfo, FileInfo);
}

Used to monitor/customize the file merge of two directory trees




  Fields

· DIFFERENT_TYPES

Summary  |  Top

   public static final int DIFFERENT_TYPES

The file exists in both trees - but the type differs


· ENTER_DIR

Summary  |  Top
   public static final int ENTER_DIR

We are going down into a child directory


· EXIT_DIR

Summary  |  Top
   public static final int EXIT_DIR

We are poping out of a child directory


· FILES_SAME

Summary  |  Top
   public static final int FILES_SAME

The file exists in both trees - and appears identical


· NEWER_IN_LEFT

Summary  |  Top
   public static final int NEWER_IN_LEFT

The file exists in both trees - but the left file is newer


· NEWER_IN_RIGHT

Summary  |  Top
   public static final int NEWER_IN_RIGHT

The file exists in both trees - but the right file is newer


· ONLY_IN_LEFT

Summary  |  Top
   public static final int ONLY_IN_LEFT

The file only exists in the left tree


· ONLY_IN_RIGHT

Summary  |  Top
   public static final int ONLY_IN_RIGHT

The file only exists in the right tree


· UNKNOWN

Summary  |  Top
   public static final int UNKNOWN

Do not use this value - it is only used while calcuating codes


· WRONG_SIZES

Summary  |  Top
   public static final int WRONG_SIZES

The file exists in both trees and the dates are the same - but for some reason the sizes don't match


· diffNames

Summary  |  Top
   public static final String[] diffNames

For debugging


  Methods

· handleMerge

Summary  |  Top

   public abstract boolean handleMerge(int diffType, 
                                       FileInfo left, 
                                       FileInfo right) 

Return true if the merge should continue



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