|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.commons.vfs.AbstractVEntry<V>
org.millscript.commons.vfs.AbstractVFolder<ReadOnlyZipVolume>
org.millscript.commons.vfs.mime.zip.ReadOnlyZipFolder
public class ReadOnlyZipFolder
This class implements a virtual filesystem folder for a read-only zip file folder.
| Method Summary | |
|---|---|
VEntry |
checkVEntry(java.lang.String segment)
Returns the entry for the child with the specified name, but only if it exists and throws an exception otherwise. |
ReadOnlyZipFile |
checkVFile(java.lang.String segment)
Returns the entry for the child file with the specified name, but only if it exists and throws an exception otherwise. |
ReadOnlyZipFolder |
checkVFolder(java.lang.String segment)
Returns the entry for the child folder with the specified name, but only if it exists and throws an exception otherwise. |
boolean |
exists()
Tests to see if the entry exits. |
ReadOnlyZipFile |
getVFile(java.lang.String segment)
Returns the entry for the child file with the specified name. |
ReadOnlyZipFolder |
getVFolder(java.lang.String segment)
Returns the entry for the child folder with the specified name. |
java.util.List<VEntry> |
listEntries()
Returns a list of all the child entries in this folder. |
java.util.List<VFile> |
listFiles()
Returns a list of all the child files in this folder. |
java.util.List<VFolder> |
listFolders()
Returns a list of all the child folders in this folder. |
VFolder |
make()
Makes this folder in the volume. |
| Methods inherited from class org.millscript.commons.vfs.AbstractVFolder |
|---|
appendRelativePath, appendRelativePathOnVolume, appendURI, chroot, decorate, make, resolveAsFile, resolveAsFolder, resolveAsVolume, toLocal, toString, toVolume |
| Methods inherited from class org.millscript.commons.vfs.AbstractVEntry |
|---|
appendAbsolutePath, appendAbsolutePathOnVolume, getAbsolutePath, getAbsolutePathOnVolume, getMIMEType, getMIMETypeHandler, getName, getParent, getRelativePath, getRelativePathOnVolume, getURI, getVolume |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.millscript.commons.vfs.VEntry |
|---|
appendAbsolutePath, appendAbsolutePathOnVolume, getAbsolutePath, getAbsolutePathOnVolume, getMIMEType, getMIMETypeHandler, getName, getParent, getRelativePath, getRelativePathOnVolume, getURI, getVolume |
| Method Detail |
|---|
public boolean exists()
VEntry
true if this entry exits and false
otherwiseVEntry.exists()public VEntry checkVEntry(java.lang.String segment)
VFolder
segment - the name of the required child
VFolder.checkVEntry(java.lang.String)public ReadOnlyZipFile checkVFile(java.lang.String segment)
VFolder
segment - the name of the required child file
VFolder.checkVFile(java.lang.String)public ReadOnlyZipFolder checkVFolder(java.lang.String segment)
VFolder
segment - the name of the required child folder
VFolder.checkVFolder(java.lang.String)public ReadOnlyZipFile getVFile(java.lang.String segment)
VFolder
segment - the name of the required child file
VFolder.getVFile(java.lang.String)public ReadOnlyZipFolder getVFolder(java.lang.String segment)
VFolder
segment - the name of the required child folder
VFolder.getVFolder(java.lang.String)public java.util.List<VEntry> listEntries()
VFolder
VFolder.listEntries()public java.util.List<VFile> listFiles()
VFolder
VFolder.listFiles()public java.util.List<VFolder> listFolders()
VFolder
VFolder.listFolders()public VFolder make()
VFolder
VFolder.make()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||