org.glassfish.hk2.classmodel.reflect.util
Class InputStreamArchiveAdapter
java.lang.Object
org.glassfish.hk2.classmodel.reflect.util.InputStreamArchiveAdapter
- All Implemented Interfaces:
- java.io.Closeable, ArchiveAdapter
public class InputStreamArchiveAdapter
- extends java.lang.Object
- implements ArchiveAdapter
Archive adapter based on a single InputStream instance.
- Author:
- Jerome Dochez
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamArchiveAdapter
public InputStreamArchiveAdapter(java.net.URI uri,
java.io.InputStream is)
getURI
public java.net.URI getURI()
- Description copied from interface:
ArchiveAdapter
- Returns the URI of the archive
- Specified by:
getURI in interface ArchiveAdapter
- Returns:
- URI of the archive
getManifest
public java.util.jar.Manifest getManifest()
throws java.io.IOException
- Description copied from interface:
ArchiveAdapter
- Returns the manifest instance for the archive.
- Specified by:
getManifest in interface ArchiveAdapter
- Returns:
- the archive's manifest
- Throws:
java.io.IOException - if the manifest cannot be loaded.
onEachEntry
public void onEachEntry(ArchiveAdapter.EntryTask task)
throws java.io.IOException
- Description copied from interface:
ArchiveAdapter
- perform a task on each archive entry
- Specified by:
onEachEntry in interface ArchiveAdapter
- Parameters:
task - the task to perform
- Throws:
java.io.IOException - can be generated while reading the archive entries
close
public void close()
throws java.io.IOException
- Specified by:
close in interface java.io.Closeable
- Throws:
java.io.IOException
Copyright © 2010 Sun Microsystems, Inc.. All Rights Reserved.