public class ZipEntryFilePath extends ZipEntryPath implements FilePath
This FilePath
represents an entry inside a ZIP archive identified as a path.
Modifier and Type | Class and Description |
---|---|
class |
ZipEntryFilePath.ZipFileInputStream
This class wraps a
ZipFile and delegate the ZipEntryFilePath.ZipFileInputStream.read() method to an InputStream created by
itself. |
ZipEntryPath.ArchiveWithParentEntry
Constructor and Description |
---|
ZipEntryFilePath(String entry,
DirectoryPath parent)
Builds a new instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getLastUpdate()
Gets the last update date of this path.
|
InputStream |
openStream()
Opens a stream to the path represented by this path.
|
findZipArchive
getAbsolutePath, getName, getParent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAbsolutePath, getName, getParent
public ZipEntryFilePath(String entry, DirectoryPath parent)
Builds a new instance.
entry
- the ZIP entry nameparent
- the parentpublic InputStream openStream() throws IOException
Opens a stream to the path represented by this path.
openStream
in interface FilePath
IOException
- if stream can't be openedpublic long getLastUpdate() throws IOException
Gets the last update date of this path.
getLastUpdate
in interface Path
getLastUpdate
in class ZipEntryPath
IOException
- if an I/O error occurs while accessing path dataCopyright © 2012-2015. All Rights Reserved.