| Constructor and Description |
|---|
MFileOS(java.io.File file) |
MFileOS(java.lang.String filename) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MFile o) |
java.lang.Object |
getAuxInfo() |
static MFileOS |
getExistingFile(java.lang.String filename)
Make MFileOS if file exists, otherwise return null
|
java.io.File |
getFile() |
long |
getLastModified()
Get time of last modification at the time the MFile object was created
|
long |
getLength()
Size of file in bytes
|
java.lang.String |
getName()
The name is the farthest element from the root in the directory hierarchy.
|
MFile |
getParent()
Get the parent of this
|
java.lang.String |
getPath()
Get full path name, replace \\ with /
|
boolean |
isDirectory() |
void |
setAuxInfo(java.lang.Object auxInfo) |
java.lang.String |
toString() |
public MFileOS(java.io.File file)
public MFileOS(java.lang.String filename)
public static MFileOS getExistingFile(java.lang.String filename)
filename - public long getLastModified()
MFilegetLastModified in interface MFilepublic long getLength()
MFilepublic boolean isDirectory()
isDirectory in interface MFilepublic java.lang.String getPath()
MFilepublic java.lang.String getName()
MFilepublic int compareTo(MFile o)
public java.lang.Object getAuxInfo()
getAuxInfo in interface MFilepublic void setAuxInfo(java.lang.Object auxInfo)
setAuxInfo in interface MFilepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.io.File getFile()