Class NARComparator

java.lang.Object
com.nt.udc.general.NARComparator

public class NARComparator extends Object
  • Field Details

  • Constructor Details

    • NARComparator

      public NARComparator()
    • NARComparator

      public NARComparator(String[] args) throws Exception
      Constructor with command line arguments.
      Parameters:
      args - Command line arguments
      Throws:
      Exception - If there's an issue parsing the command line arguments
  • Method Details

    • main

      public static void main(String[] args)
      Main method to start the NARComparator.
      Parameters:
      args - Command line arguments
    • processNars

      public void processNars()
      Process NAR files.
    • listFilesWithSuffixes

      public File[] listFilesWithSuffixes(File dir)
      Lists all files in the given directory that match one or more suffixes.
      Parameters:
      dir - the directory to search
      fileSuffixes - comma-separated list of suffixes (e.g. ".txt,.log,.csv")
      Returns:
      array of matching files, or an empty array if none found
    • getNARFromFile

      public NAR[] getNARFromFile(String narFile)
      Get NARs from a file.
      Parameters:
      narFile - NAR file
      Returns:
      NARs from the file
    • setLogger

      public LoggerIfc setLogger(String loggerObj)
      Set the logger instance.
      Parameters:
      loggerObj - Logger object
      Returns:
      Logger instance