Class IOUtil.FileWrapper

java.lang.Object
ucar.unidata.util.IOUtil.FileWrapper
All Implemented Interfaces:
Comparable
Enclosing class:
IOUtil

public static class IOUtil.FileWrapper extends Object implements Comparable
Wrapper for a file for doing comparisons
Version:
$Revision: 1.52 $
Author:
IDV Development Team
  • Constructor Details

    • FileWrapper

      public FileWrapper(File f, boolean youngestFirst)
      Create a FileWrapper for the file with the appropriate sorting
      Parameters:
      f - File to wrap
      youngestFirst - flag for sorting
  • Method Details

    • toString

      public String toString()
      _more_
      Overrides:
      toString in class Object
      Returns:
      _more_
    • getFile

      public File getFile()
      Return the file
      Returns:
      the file
    • lastModified

      public long lastModified()
      _more_
      Returns:
      _more_
    • isDirectory

      public boolean isDirectory()
      _more_
      Returns:
      _more_
    • delete

      public boolean delete()
      _more_
      Returns:
      _more_
    • length

      public long length()
      _more_
      Returns:
      _more_
    • toArray

      public static IOUtil.FileWrapper[] toArray(File[] files, boolean youngestFirst)
      _more_
      Parameters:
      files - _more_
      youngestFirst - _more_
      Returns:
      _more_
    • toArray

      public static IOUtil.FileWrapper[] toArray(List<File> files, boolean youngestFirst)
      _more_
      Parameters:
      files - _more_
      youngestFirst - _more_
      Returns:
      _more_
    • compareTo

      public int compareTo(Object o)
      Compare the object
      Specified by:
      compareTo in interface Comparable
      Parameters:
      o - object to compare
      Returns:
      comparison value