|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.scanning.FilesScanner
public class FilesScanner
A scanner that recursively scans directories and jar files.
Files or jar entries are reported to a ResourceProcessor.
| Constructor Summary | |
|---|---|
FilesScanner(String files)
Scan from a set of packages. |
|
FilesScanner(String[] fileNames)
Scan from a set of packages. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilesScanner(String files)
files - a String containing package names.public FilesScanner(String[] fileNames)
fileNames - an array of package names.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<String>public String next()
next in interface Iterator<String>public void remove()
ResourceFinderResourceFinder & throws UnsupportedOperationException
when invoked.
remove in interface Iterator<String>remove in interface ResourceFinderpublic InputStream open()
ResourceFinder
open 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 ResourceFinder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||