public class FilesScanner extends Object implements ResourceFinder
ResourceProcessor.| Constructor and Description |
|---|
FilesScanner(String[] fileNames,
boolean recursive)
Scan from a set of packages.
|
| 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 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 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-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.