public class ZipEntryDirectoryPath extends ZipDirectoryPath implements DirectoryPath
This DirectoryPath
represents an entry inside a ZIP archive identified as a directory.
Constructor and Description |
---|
ZipEntryDirectoryPath(String entry,
DirectoryPath parent)
Builds a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected String |
absoluteEntryOf(String child)
Gets the absolute entry name of the given
String built relatively to this directory's archive. |
long |
getLastUpdate()
Gets the last update date of this path.
|
protected ZipFile |
getZipFile()
Gets the ZIP file related to this directory.
|
String[] |
list()
Lists all the children path names of this directory.
|
buildChild
getChild
getAbsolutePath, getName, getParent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChild
getAbsolutePath, getName, getParent
public ZipEntryDirectoryPath(String entry, DirectoryPath parent)
Builds a new instance.
entry
- the ZIP entry nameparent
- the parentpublic String[] list() throws IOException
Lists all the children path names of this directory.
list
in interface DirectoryPath
IOException
- if any I/O error occursprotected ZipFile getZipFile() throws IOException
Gets the ZIP file related to this directory.
getZipFile
in class ZipDirectoryPath
IOException
- if any I/O error occursprotected String absoluteEntryOf(String child) throws IOException
Gets the absolute entry name of the given String
built relatively to this directory's archive.
absoluteEntryOf
in class ZipDirectoryPath
IOException
- if any I/O error occurspublic long getLastUpdate() throws IOException
Gets the last update date of this path.
getLastUpdate
in interface Path
IOException
- if an I/O error occurs while accessing path dataCopyright © 2012-2015. All Rights Reserved.