public class InputStreamArchiveAdapter extends AbstractAdapter
ArchiveAdapter.Entry, ArchiveAdapter.EntryTask, ArchiveAdapter.Selector| 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
|
onAllEntriespublic InputStreamArchiveAdapter(JarArchive parent, java.net.URI uri, java.io.InputStream is)
public java.net.URI getURI()
ArchiveAdapterpublic java.util.jar.Manifest getManifest()
throws java.io.IOException
ArchiveAdapterjava.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
ArchiveAdapterselector - 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.IOExceptionCopyright © 2013 Oracle Corporation. All Rights Reserved.