public class InputStreamArchiveAdapter extends AbstractAdapter
ArchiveAdapter.Entry, ArchiveAdapter.EntryTask, ArchiveAdapter.Selector| Constructor and Description |
|---|
InputStreamArchiveAdapter(JarArchive parent,
URI uri,
InputStream is) |
| 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 InputStreamArchiveAdapter(JarArchive parent, URI uri, InputStream is)
public URI getURI()
ArchiveAdapterpublic Manifest getManifest() throws IOException
ArchiveAdapterIOException - if the manifest cannot be loaded.public 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 void close()
throws IOException
IOExceptionCopyright © 2009-2016 Oracle Corporation. All Rights Reserved.