Modifier and Type | Field and Description |
---|---|
java.io.File |
directory |
int |
index |
long |
lastModified |
long |
length |
java.lang.String |
name |
Constructor and Description |
---|
GcMFile(java.io.File directory,
java.lang.String name,
long lastModified,
long length,
int index) |
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() |
static java.util.List<GcMFile> |
makeFiles(java.io.File directory,
java.util.List<MFile> files,
java.util.Set<java.lang.Integer> allFileSet) |
void |
setAuxInfo(java.lang.Object info) |
java.lang.String |
toString() |
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 GcMFile(java.io.File directory, java.lang.String name, long lastModified, long length, int index)
public static java.util.List<GcMFile> makeFiles(java.io.File directory, java.util.List<MFile> files, java.util.Set<java.lang.Integer> allFileSet)
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 MFile getParent() throws java.io.IOException
MFile
public int compareTo(MFile o)
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