|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glassfish.jersey.server.internal.scanning.JarFileScanner
public final class JarFileScanner
A utility class that scans entries in jar files.
Constructor Summary | |
---|---|
JarFileScanner(InputStream inputStream,
String parent,
boolean recursive)
Create new JAR file scanner. |
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 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.Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<String>
public String next()
next
in interface Iterator<String>
public void remove()
ResourceFinder
ResourceFinder
& throws UnsupportedOperationException
when invoked.
remove
in interface Iterator<String>
remove
in interface ResourceFinder
public void reset()
ResourceFinder
ResourceFinder
instance.
Upon calling this method the implementing class MUST reset its internal state to the initial state.
reset
in interface ResourceFinder
public InputStream open()
ResourceFinder
open
in interface ResourceFinder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |