public final class JarFileScanner extends Object implements ResourceFinder
| Constructor and Description |
|---|
JarFileScanner(InputStream inputStream,
String parent,
boolean recursive)
Create new JAR file scanner.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
String |
next() |
InputStream |
open()
Open current resource.
|
void |
remove()
This operation is not supported by
ResourceFinder & throws UnsupportedOperationException
when invoked. |
void |
reset()
Reset the
ResourceFinder instance. |
public JarFileScanner(InputStream inputStream, String parent, boolean recursive) throws IOException
inputStream - JAR file input streamparent - JAR file entry prefix.recursive - if (true the packages will be scanned recursively together with
any nested packages, if false only the explicitly listed packages
will be scanned.IOExceptionpublic void remove()
ResourceFinderResourceFinder & throws UnsupportedOperationException
when invoked.remove in interface Iterator<String>remove in interface ResourceFinderpublic InputStream open()
ResourceFinderopen in interface ResourceFinderpublic void reset()
ResourceFinderResourceFinder instance.
Upon calling this method the implementing class MUST reset its internal state to the initial state.reset in interface ResourceFinderCopyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.