public class InputStreamArchiveAdapter extends AbstractAdapter
ArchiveAdapter.Entry, ArchiveAdapter.EntryTask, ArchiveAdapter.Selector
Modifier and Type | Field and Description |
---|---|
private java.io.InputStream |
is |
private java.net.URI |
uri |
Constructor and Description |
---|
InputStreamArchiveAdapter(JarArchive parent,
java.net.URI uri,
java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.jar.Manifest |
getManifest()
Returns the manifest instance for the archive.
|
java.net.URI |
getURI()
Returns the URI of the archive
|
void |
onSelectedEntries(ArchiveAdapter.Selector selector,
ArchiveAdapter.EntryTask task,
java.util.logging.Logger logger)
perform a task on selected archive entries
|
onAllEntries
public InputStreamArchiveAdapter(JarArchive parent, java.net.URI uri, java.io.InputStream is)
public java.net.URI getURI()
ArchiveAdapter
public java.util.jar.Manifest getManifest() throws java.io.IOException
ArchiveAdapter
java.io.IOException
- if the manifest cannot be loaded.public void onSelectedEntries(ArchiveAdapter.Selector selector, ArchiveAdapter.EntryTask task, java.util.logging.Logger logger) throws java.io.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 activityjava.io.IOException
- can be generated while reading the archive entriespublic void close() throws java.io.IOException
java.io.IOException