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
|
onAllEntries
public InputStreamArchiveAdapter(JarArchive parent, URI uri, InputStream is)
public URI getURI()
ArchiveAdapter
public Manifest getManifest() throws IOException
ArchiveAdapter
IOException
- if the manifest cannot be loaded.public void onSelectedEntries(ArchiveAdapter.Selector selector, ArchiveAdapter.EntryTask task, Logger logger) throws IOException
ArchiveAdapter
selector
- 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
IOException
Copyright © 2009–2023 Oracle Corporation. All rights reserved.