Package ucar.unidata.util
Class IOUtil.FileWrapper
java.lang.Object
ucar.unidata.util.IOUtil.FileWrapper
- All Implemented Interfaces:
Comparable
- Enclosing class:
IOUtil
Wrapper for a file for doing comparisons
- Version:
- $Revision: 1.52 $
- Author:
- IDV Development Team
-
Constructor Summary
ConstructorsConstructorDescriptionFileWrapper(File f, boolean youngestFirst) Create a FileWrapper for the file with the appropriate sorting -
Method Summary
Modifier and TypeMethodDescriptionintCompare the objectbooleandelete()_more_getFile()Return the fileboolean_more_long_more_longlength()_more_static IOUtil.FileWrapper[]_more_static IOUtil.FileWrapper[]_more_toString()_more_
-
Constructor Details
-
FileWrapper
Create a FileWrapper for the file with the appropriate sorting- Parameters:
f- File to wrapyoungestFirst- flag for sorting
-
-
Method Details
-
toString
_more_ -
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
_more_- Parameters:
files- _more_youngestFirst- _more_- Returns:
- _more_
-
toArray
_more_- Parameters:
files- _more_youngestFirst- _more_- Returns:
- _more_
-
compareTo
Compare the object- Specified by:
compareToin interfaceComparable- Parameters:
o- object to compare- Returns:
- comparison value
-