psdi.unittest.util.detectchange

Class DetectChange

  • java.lang.Object
    • psdi.unittest.util.detectchange.DetectChange


  • public class DetectChange
    extends java.lang.Object
    Utility class to compare two directories and display modified file into standard output.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DetectChange(java.lang.String[] args) 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected boolean acceptFile(java.lang.String filename) 
      protected void checkSum() 
      protected void compare() 
      void execute() 
      protected java.util.TreeMap loadFiles(java.io.File directory) 
      protected void loadFiles(java.util.TreeMap fileSet, java.io.File directory, java.lang.String subdir) 
      protected java.util.List loadPatternFromFile(java.lang.String file) 
      static void main(java.lang.String[] args) 
      protected java.lang.String patternToRegEx(java.lang.String pattern) 
      protected void processArguments(java.lang.String[] args) 
      protected void showHelp() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DetectChange

        public DetectChange(java.lang.String[] args)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • main

        public static void main(java.lang.String[] args)
                         throws java.io.IOException,
                                java.security.NoSuchAlgorithmException
        Parameters:
        args -
        Throws:
        java.io.IOException
        java.security.NoSuchAlgorithmException
      • processArguments

        protected void processArguments(java.lang.String[] args)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • loadPatternFromFile

        protected java.util.List loadPatternFromFile(java.lang.String file)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • patternToRegEx

        protected java.lang.String patternToRegEx(java.lang.String pattern)
      • showHelp

        protected void showHelp()
      • execute

        public void execute()
                     throws java.security.NoSuchAlgorithmException,
                            java.io.IOException
        Throws:
        java.security.NoSuchAlgorithmException
        java.io.IOException
      • checkSum

        protected void checkSum()
                         throws java.security.NoSuchAlgorithmException,
                                java.io.IOException
        Throws:
        java.security.NoSuchAlgorithmException
        java.io.IOException
      • compare

        protected void compare()
                        throws java.security.NoSuchAlgorithmException,
                               java.io.IOException
        Throws:
        java.security.NoSuchAlgorithmException
        java.io.IOException
      • loadFiles

        protected java.util.TreeMap loadFiles(java.io.File directory)
                                       throws java.security.NoSuchAlgorithmException,
                                              java.io.IOException
        Throws:
        java.security.NoSuchAlgorithmException
        java.io.IOException
      • loadFiles

        protected void loadFiles(java.util.TreeMap fileSet,
                                 java.io.File directory,
                                 java.lang.String subdir)
                          throws java.security.NoSuchAlgorithmException,
                                 java.io.IOException
        Throws:
        java.security.NoSuchAlgorithmException
        java.io.IOException
      • acceptFile

        protected boolean acceptFile(java.lang.String filename)