public interface ZipHandle extends Closeable
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.
|
boolean |
hasEntry(String path)
Returns true if Zip file this handle is pointing to contains an entry at given path.
|
boolean hasEntry(String path) throws IOException
path
- IOException
List<String> getEntries()
List<String> getEntries(EntryNameFilter filter)
InputStream getEntryContent(String path) throws IOException
path
- IOException
void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.