public class DirectoryArchive extends AbstractAdapter
ArchiveAdapter.Entry, ArchiveAdapter.EntryTask, ArchiveAdapter.Selector
Constructor and Description |
---|
DirectoryArchive(Parser parser,
java.io.File directory) |
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
|
private java.lang.String |
mangle(java.io.File f) |
void |
onSelectedEntries(ArchiveAdapter.Selector selector,
ArchiveAdapter.EntryTask task,
java.util.logging.Logger logger)
perform a task on selected archive entries
|
private void |
parse(java.io.File dir,
ArchiveAdapter.Selector selector,
ArchiveAdapter.EntryTask task,
java.util.logging.Logger logger) |
java.lang.String |
toString() |
onAllEntries
public final java.io.File directory
public final Parser parser
public DirectoryArchive(Parser parser, java.io.File directory)
public java.lang.String toString()
toString
in class java.lang.Object
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 entriesprivate void parse(java.io.File dir, ArchiveAdapter.Selector selector, ArchiveAdapter.EntryTask task, java.util.logging.Logger logger) throws java.io.IOException
java.io.IOException
private java.lang.String mangle(java.io.File f)
public void close() throws java.io.IOException
java.io.IOException