public final class JarFileScanner extends Object
Constructor and Description |
---|
JarFileScanner() |
Modifier and Type | Method and Description |
---|---|
static void |
scan(File f,
String parent,
ScannerListener sl)
Scan entries in a jar file.
|
static void |
scan(InputStream in,
String parent,
ScannerListener sl)
Scan entries in a jar file.
|
public static void scan(File f, String parent, ScannerListener sl) throws IOException
An entry will be reported to the scanning listener if the entry is a child of the parent path.
f
- the jar file.parent
- the parent path.sl
- the scanning lister to report jar entries.IOException
- if an error occurred scanning the jar entriespublic static void scan(InputStream in, String parent, ScannerListener sl) throws IOException
An entry will be reported to the scanning listener if the entry is a child of the parent path.
in
- the jar file as an input stream.parent
- the parent path.sl
- the scanning lister to report jar entries.IOException
- if an error occurred scanning the jar entriesCopyright © 2013 Oracle Corporation. All rights reserved.