public class GcMFile extends Object implements MFile
Modifier and Type | Field and Description |
---|---|
File |
directory |
int |
index |
long |
lastModified |
long |
length |
String |
name |
Constructor and Description |
---|
GcMFile(File directory,
String name,
long lastModified,
long length,
int index) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MFile o) |
Object |
getAuxInfo() |
File |
getDirectory() |
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() |
static List<GcMFile> |
makeFiles(File directory,
List<MFile> files,
Set<Integer> allFileSet) |
void |
setAuxInfo(Object info) |
String |
toString() |
public final File directory
public final String name
public final long lastModified
public final long length
public final int index
public static List<GcMFile> makeFiles(File directory, List<MFile> files, Set<Integer> allFileSet)
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 MFile getParent() throws IOException
MFile
getParent
in interface MFile
IOException
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 info)
setAuxInfo
in interface MFile
public File getDirectory()
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.