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()
MFilegetLastModified in interface MFilepublic long getLength()
MFilepublic boolean isDirectory()
isDirectory in interface MFilepublic String getPath()
MFilepublic String getName()
MFilepublic MFile getParent() throws IOException
MFilegetParent in interface MFileIOExceptionpublic int compareTo(MFile o)
compareTo in interface Comparable<MFile>compareTo in interface MFilepublic Object getAuxInfo()
getAuxInfo in interface MFilepublic void setAuxInfo(Object info)
setAuxInfo in interface MFilepublic File getDirectory()
Copyright © 1999–2021 UCAR/Unidata. All rights reserved.