Modifier and Type | Class and Description |
---|---|
static class |
MFileZip.Provider |
Constructor and Description |
---|
MFileZip(java.lang.String filename) |
MFileZip(java.util.zip.ZipFile file) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MFile o) |
java.lang.Object |
getAuxInfo() |
long |
getLastModified()
Get time of last modification at the time the MFile object was created
|
java.util.List<java.util.zip.ZipEntry> |
getLeafEntries() |
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 /
|
java.nio.file.Path |
getRelativePath() |
java.nio.file.Path |
getRootPath() |
boolean |
isDirectory() |
boolean |
isReadable() |
void |
setAuxInfo(java.lang.Object info) |
public MFileZip(java.util.zip.ZipFile file) throws java.io.IOException
java.io.IOException
public MFileZip(java.lang.String filename) throws java.io.IOException
java.io.IOException
public long getLastModified()
MFile
getLastModified
in interface MFile
public long getLength()
MFile
public boolean isDirectory()
isDirectory
in interface MFile
public boolean isReadable()
isReadable
in interface MFile
public java.lang.String getPath()
MFile
public java.lang.String getName()
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.nio.file.Path getRootPath()
public java.nio.file.Path getRelativePath()
public java.util.List<java.util.zip.ZipEntry> getLeafEntries()