public final class JarFileScanner extends AbstractResourceFinderAdapter
| Constructor and Description |
|---|
JarFileScanner(InputStream inputStream,
String parent,
boolean recursive)
Create new JAR file scanner.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Default implementation of
#close() which does nothing. |
boolean |
hasNext() |
String |
next() |
InputStream |
open()
Open current resource.
|
void |
reset()
Reset the
ResourceFinder instance. |
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic 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.IOException - if wrapping given input stream into JarInputStream failed.public boolean hasNext()
public String next()
public void reset()
ResourceFinderResourceFinder instance.
Upon calling this method the implementing class MUST reset its internal state to the initial state.public InputStream open()
ResourceFinderpublic void close()
AbstractResourceFinderAdapter#close() which does nothing.close in interface AutoCloseableclose in interface ResourceFinderclose in class AbstractResourceFinderAdapterCopyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.