public static class IOUtil.FileWrapper
extends java.lang.Object
implements java.lang.Comparable
Constructor and Description |
---|
FileWrapper(java.io.File f,
boolean youngestFirst)
Create a FileWrapper for the file with the appropriate sorting
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Compare the object
|
boolean |
delete()
_more_
|
java.io.File |
getFile()
Return the file
|
boolean |
isDirectory()
_more_
|
long |
lastModified()
_more_
|
long |
length()
_more_
|
static IOUtil.FileWrapper[] |
toArray(java.io.File[] files,
boolean youngestFirst)
_more_
|
static IOUtil.FileWrapper[] |
toArray(java.util.List<java.io.File> files,
boolean youngestFirst)
_more_
|
java.lang.String |
toString()
_more_
|
public FileWrapper(java.io.File f, boolean youngestFirst)
f
- File to wrapyoungestFirst
- flag for sortingpublic java.lang.String toString()
toString
in class java.lang.Object
public java.io.File getFile()
public long lastModified()
public boolean isDirectory()
public boolean delete()
public long length()
public static IOUtil.FileWrapper[] toArray(java.io.File[] files, boolean youngestFirst)
files
- _more_youngestFirst
- _more_public static IOUtil.FileWrapper[] toArray(java.util.List<java.io.File> files, boolean youngestFirst)
files
- _more_youngestFirst
- _more_public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- object to compare