public class ZipEntryPath extends SimplePath implements Path
This Path represents an entry inside a ZIP archive.
| Modifier and Type | Class and Description |
|---|---|
protected class |
ZipEntryPath.ArchiveWithParentEntry
Simple wrapper of a ZIP archive and a path which could be retrieved as an entry.
|
| Constructor and Description |
|---|
ZipEntryPath(String entry,
DirectoryPath parent)
Builds a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ZipEntryPath.ArchiveWithParentEntry |
findZipArchive(String path)
This method goes through parents to find the first
ZipFilePath which represents the archive containing
this path. |
long |
getLastUpdate()
Gets the last update date of this path.
|
getAbsolutePath, getName, getParent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAbsolutePath, getName, getParentpublic ZipEntryPath(String entry, DirectoryPath parent)
Builds a new instance. Throws an IllegalArgumentException if the parent is null because an entry
must have a parent.
entry - the ZIP entry nameparent - the parentpublic ZipEntryPath.ArchiveWithParentEntry findZipArchive(String path)
This method goes through parents to find the first ZipFilePath which represents the archive containing
this path.
path - a path the path to append to the parent path starting at the zip archive root entrypublic long getLastUpdate()
throws IOException
Gets the last update date of this path.
getLastUpdate in interface PathIOException - if an I/O error occurs while accessing path dataCopyright © 2012-2015. All Rights Reserved.