Class DirectoryArchive
java.lang.Object
org.glassfish.hk2.classmodel.reflect.util.AbstractAdapter
org.glassfish.hk2.classmodel.reflect.util.DirectoryArchive
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ArchiveAdapter
Directory base archive abstraction
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.hk2.classmodel.reflect.ArchiveAdapter
ArchiveAdapter.Entry, ArchiveAdapter.EntryTask, ArchiveAdapter.Selector
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Returns the manifest instance for the archive.getURI()
Returns the URI of the archiveprivate String
void
onSelectedEntries
(ArchiveAdapter.Selector selector, ArchiveAdapter.EntryTask task, Logger logger) perform a task on selected archive entriesprivate void
parse
(File dir, ArchiveAdapter.Selector selector, ArchiveAdapter.EntryTask task, Logger logger) toString()
Methods inherited from class org.glassfish.hk2.classmodel.reflect.util.AbstractAdapter
onAllEntries
-
Field Details
-
directory
-
parser
-
-
Constructor Details
-
DirectoryArchive
-
-
Method Details
-
toString
-
getURI
Description copied from interface:ArchiveAdapter
Returns the URI of the archive- Returns:
- URI of the archive
-
getManifest
Description copied from interface:ArchiveAdapter
Returns the manifest instance for the archive.- Returns:
- the archive's manifest
- Throws:
IOException
- if the manifest cannot be loaded.
-
onSelectedEntries
public void onSelectedEntries(ArchiveAdapter.Selector selector, ArchiveAdapter.EntryTask task, Logger logger) throws 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:
IOException
- can be generated while reading the archive entries
-
parse
private void parse(File dir, ArchiveAdapter.Selector selector, ArchiveAdapter.EntryTask task, Logger logger) throws IOException - Throws:
IOException
-
mangle
-
close
- Throws:
IOException
-