@ThreadSafe public class MFileOS extends Object implements MFile
| Constructor and Description |
|---|
MFileOS(File file) |
MFileOS(String filename) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MFile o) |
Object |
getAuxInfo() |
static MFileOS |
getExistingFile(String filename)
Make MFileOS if file exists, otherwise return null
|
long |
getLastModified()
Get time of last modification at the time the MFile object was created
|
long |
getLength()
Size of file in bytes
|
String |
getName() |
String |
getPath()
Get full path name, replace \\ with /
|
boolean |
isDirectory() |
void |
setAuxInfo(Object auxInfo) |
public static MFileOS getExistingFile(String filename)
filename - public long getLastModified()
MFilegetLastModified in interface MFilepublic long getLength()
MFilepublic boolean isDirectory()
isDirectory in interface MFilepublic String getPath()
MFilepublic int compareTo(MFile o)
compareTo in interface Comparable<MFile>compareTo in interface MFilepublic Object getAuxInfo()
getAuxInfo in interface MFilepublic void setAuxInfo(Object auxInfo)
setAuxInfo in interface MFileCopyright © 1999-2013 UCAR/Unidata. All Rights Reserved.