@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
|
File |
getFile() |
long |
getLastModified()
Get time of last modification at the time the MFile object was created
|
long |
getLength()
Size of file in bytes
|
String |
getName()
The name is the farthest element from the root in the directory hierarchy.
|
MFile |
getParent()
Get the parent of this
|
String |
getPath()
Get full path name, replace \\ with /
|
boolean |
isDirectory() |
void |
setAuxInfo(Object auxInfo) |
String |
toString() |
public static MFileOS getExistingFile(String filename)
filename
- public long getLastModified()
MFile
getLastModified
in interface MFile
public long getLength()
MFile
public boolean isDirectory()
isDirectory
in interface MFile
public String getPath()
MFile
public String getName()
MFile
public int compareTo(MFile o)
compareTo
in interface Comparable<MFile>
compareTo
in interface MFile
public Object getAuxInfo()
getAuxInfo
in interface MFile
public void setAuxInfo(Object auxInfo)
setAuxInfo
in interface MFile
public File getFile()
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.