public class JarArchive extends AbstractAdapter
ArchiveAdapter.Entry, ArchiveAdapter.EntryTask, ArchiveAdapter.Selector| Constructor and Description |
|---|
JarArchive(Parser parser,
URI uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Manifest |
getManifest()
Returns the manifest instance for the archive.
|
URI |
getURI()
Returns the URI of the archive
|
void |
onSelectedEntries(ArchiveAdapter.Selector selector,
ArchiveAdapter.EntryTask task,
Logger logger)
perform a task on selected archive entries
|
onAllEntriespublic JarArchive(Parser parser, URI uri) throws IOException
IOExceptionpublic URI getURI()
ArchiveAdapterpublic void onSelectedEntries(ArchiveAdapter.Selector selector, ArchiveAdapter.EntryTask task, Logger logger) throws IOException
ArchiveAdapterselector - implementation to select the archive archive entries on
which the task should be performed.task - the task to performlogger - for any logging activityIOException - can be generated while reading the archive entriespublic Manifest getManifest() throws IOException
ArchiveAdapterIOException - if the manifest cannot be loaded.public void close()
throws IOException
IOExceptionCopyright © 2009-2016 Oracle Corporation. All Rights Reserved.