@ThreadSafe public class MFileOS7 extends Object implements MFile
| Constructor and Description |
|---|
MFileOS7(Path path) |
MFileOS7(Path path,
BasicFileAttributes attr) |
MFileOS7(String filename) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MFile o) |
Object |
getAuxInfo() |
static MFileOS7 |
getExistingFile(String filename)
Make MFileOS7 if file exists, otherwise return null
|
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.
|
Path |
getNioPath() |
MFile |
getParent()
Get the parent of this
|
String |
getPath()
Get full path name, replace \\ with /
|
boolean |
isDirectory() |
void |
setAuxInfo(Object auxInfo) |
String |
toString() |
public MFileOS7(Path path) throws IOException
IOExceptionpublic MFileOS7(Path path, BasicFileAttributes attr)
public MFileOS7(String filename) throws IOException
IOExceptionpublic static MFileOS7 getExistingFile(String filename) throws IOException
filename - full path nameIOExceptionpublic 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 auxInfo)
setAuxInfo in interface MFilepublic Path getNioPath()