Modifier and Type | Field and Description |
---|---|
java.io.File |
directory |
int |
index |
long |
lastModified |
long |
length |
java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MFile o) |
java.lang.Object |
getAuxInfo() |
java.io.File |
getDirectory() |
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 info) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isReadable
public final java.io.File directory
public final java.lang.String name
public final long lastModified
public final long length
public final int index
public long getLastModified()
MFile
getLastModified
in interface MFile
public long getLength()
MFile
public boolean isDirectory()
isDirectory
in interface MFile
public java.lang.String getPath()
MFile
public java.lang.String getName()
MFile
public int compareTo(MFile o)
@Nullable public java.lang.Object getAuxInfo()
getAuxInfo
in interface MFile
public void setAuxInfo(java.lang.Object info)
setAuxInfo
in interface MFile
public java.io.File getDirectory()
public java.lang.String toString()
toString
in class java.lang.Object