Class FileSchemeResourceFinderFactory.FileSchemeScanner
java.lang.Object
org.glassfish.jersey.server.internal.AbstractResourceFinderAdapter
org.glassfish.jersey.server.internal.scanning.FileSchemeResourceFinderFactory.FileSchemeScanner
- All Implemented Interfaces:
AutoCloseable,Iterator<String>,ResourceFinder
- Enclosing class:
FileSchemeResourceFinderFactory
private class FileSchemeResourceFinderFactory.FileSchemeScanner
extends AbstractResourceFinderAdapter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Default implementation of#close()which does nothing.booleanhasNext()next()open()Open current resource.private voidprocessFile(File f) voidreset()Reset theResourceFinderinstance.Methods inherited from class org.glassfish.jersey.server.internal.AbstractResourceFinderAdapter
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
compositeResourceFinder
-
recursive
private final boolean recursive
-
-
Constructor Details
-
FileSchemeScanner
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
open
Description copied from interface:ResourceFinderOpen current resource.- Returns:
- input stream from which current resource can be loaded.
-
close
public void close()Description copied from class:AbstractResourceFinderAdapterDefault implementation of#close()which does nothing.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResourceFinder- Overrides:
closein classAbstractResourceFinderAdapter
-
reset
public void reset()Description copied from interface:ResourceFinderReset theResourceFinderinstance. Upon calling this method the implementing class MUST reset its internal state to the initial state. -
processFile
-