|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.util.IOUtil.FileWrapper
public static class IOUtil.FileWrapper
Wrapper for a file for doing comparisons
| Constructor Summary | |
|---|---|
IOUtil.FileWrapper(File f,
boolean youngestFirst)
Create a FileWrapper for the file with the appropriate sorting |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compare the object |
boolean |
delete()
_more_ |
File |
getFile()
Return the file |
boolean |
isDirectory()
_more_ |
long |
lastModified()
_more_ |
long |
length()
_more_ |
static IOUtil.FileWrapper[] |
toArray(File[] files,
boolean youngestFirst)
_more_ |
static IOUtil.FileWrapper[] |
toArray(List<File> files,
boolean youngestFirst)
_more_ |
String |
toString()
_more_ |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IOUtil.FileWrapper(File f,
boolean youngestFirst)
f - File to wrapyoungestFirst - flag for sorting| Method Detail |
|---|
public String toString()
toString in class Objectpublic File getFile()
public long lastModified()
public boolean isDirectory()
public boolean delete()
public long length()
public static IOUtil.FileWrapper[] toArray(File[] files,
boolean youngestFirst)
files - _more_youngestFirst - _more_
public static IOUtil.FileWrapper[] toArray(List<File> files,
boolean youngestFirst)
files - _more_youngestFirst - _more_
public int compareTo(Object o)
compareTo in interface Comparableo - object to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||