public class JavaZipFileHandle extends AbstractZipHandle implements ZipHandle
| Constructor and Description |
|---|
JavaZipFileHandle(File targetFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the zip handle (performs resource cleanup).
|
List<String> |
getEntries()
Returns a list of string, with each string representing a valid path for existing entry in this Zip handle.
|
List<String> |
getEntries(EntryNameFilter filter)
Returns a list of string, with each string representing a valid path for existing entry in this Zip handle.
|
InputStream |
getEntryContent(String path)
Returns the "payload" (uncompressed) of the entry at given path, or null if no such path exists in the Zip file
this handle points to.
|
protected ZipFile |
getZipFile() |
boolean |
hasEntry(String path)
Returns true if Zip file this handle is pointing to contains an entry at given path.
|
getTargetFilepublic JavaZipFileHandle(File targetFile) throws IOException
IOExceptionprotected ZipFile getZipFile()
public boolean hasEntry(String path) throws IOException
ZipHandlehasEntry in interface ZipHandleIOExceptionpublic List<String> getEntries()
ZipHandlegetEntries in interface ZipHandlepublic List<String> getEntries(EntryNameFilter filter)
ZipHandlegetEntries in interface ZipHandlepublic InputStream getEntryContent(String path) throws IOException
ZipHandlegetEntryContent in interface ZipHandleIOExceptionpublic void close()
throws IOException
ZipHandleclose in interface Closeableclose in interface AutoCloseableclose in interface ZipHandleIOExceptionCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.