|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ZipHandle
A very simplistic approach to hide the underlying mech to deal with ZipFiles, suited for use cases happening in Maven Indexer.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |