public final class JarFileScanner
extends java.lang.Object
| Constructor and Description |
|---|
JarFileScanner() |
| Modifier and Type | Method and Description |
|---|---|
static void |
scan(java.io.File f,
java.lang.String parent,
ScannerListener sl)
Scan entries in a jar file.
|
static void |
scan(java.io.InputStream in,
java.lang.String parent,
ScannerListener sl)
Scan entries in a jar file.
|
public static void scan(java.io.File f,
java.lang.String parent,
ScannerListener sl)
throws java.io.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.java.io.IOException - if an error occurred scanning the jar entriespublic static void scan(java.io.InputStream in,
java.lang.String parent,
ScannerListener sl)
throws java.io.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.java.io.IOException - if an error occurred scanning the jar entriesCopyright © 2016 Oracle Corporation. All Rights Reserved.