public final class FilesScanner extends AbstractResourceFinderAdapter
ResourceProcessor.| Constructor and Description |
|---|
FilesScanner(String[] fileNames,
boolean recursive)
Scan from a set of packages.
|
| 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 FilesScanner(String[] fileNames, boolean recursive)
fileNames - an array of package names.recursive - flag indicating whether sub-directories of any directories in the list of
files should be included in the scanning (true) or not (false).public boolean hasNext()
public String next()
public InputStream open()
ResourceFinderpublic void close()
AbstractResourceFinderAdapter#close() which does nothing.close in interface AutoCloseableclose in interface ResourceFinderclose in class AbstractResourceFinderAdapterpublic void reset()
ResourceFinderResourceFinder instance.
Upon calling this method the implementing class MUST reset its internal state to the initial state.Copyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.