org.glassfish.hk2.classmodel.reflect.util
Class DirectoryArchive
java.lang.Object
org.glassfish.hk2.classmodel.reflect.util.AbstractAdapter
org.glassfish.hk2.classmodel.reflect.util.DirectoryArchive
- All Implemented Interfaces:
- java.io.Closeable, ArchiveAdapter
public class DirectoryArchive
- extends AbstractAdapter
Directory base archive abstraction
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
directory
public final java.io.File directory
parser
public final Parser parser
DirectoryArchive
public DirectoryArchive(Parser parser,
java.io.File directory)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getURI
public java.net.URI getURI()
- Description copied from interface:
ArchiveAdapter
- Returns the URI of the archive
- 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.
- Returns:
- the archive's manifest
- Throws:
java.io.IOException - if the manifest cannot be loaded.
onSelectedEntries
public void onSelectedEntries(ArchiveAdapter.Selector selector,
ArchiveAdapter.EntryTask task,
java.util.logging.Logger logger)
throws java.io.IOException
- Description copied from interface:
ArchiveAdapter
- perform a task on selected archive entries
- Parameters:
selector - implementation to select the archive archive entries on
which the task should be performed.task - the task to performlogger - for any logging activity
- Throws:
java.io.IOException - can be generated while reading the archive entries
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2013 Oracle Corporation. All Rights Reserved.