Class NormalizeFile

java.lang.Object
com.nt.udc.util.NormalizeFile
All Implemented Interfaces:
Comparable<NormalizeFile>

public class NormalizeFile extends Object implements Comparable<NormalizeFile>
  • Constructor Details

    • NormalizeFile

      public NormalizeFile(String fName, File f)
  • Method Details

    • compareTo

      public int compareTo(NormalizeFile other)
      Comparator used to sort the NormalizeFile by default
      Specified by:
      compareTo in interface Comparable<NormalizeFile>
    • getName

      public String getName()
      return the normalize file name
    • getFile

      public File getFile()
      return the file reference
    • normalizeFileName

      public String normalizeFileName(String fName)
      Given a file name , return the normalized name. * @param fName fileName, in String format
    • get_month

      public static String get_month(String mth)
      Given a month in String form, return it as a number String.
      Parameters:
      month - Month, in String form
      Returns:
      the given month, in String-numeric form