public final class CompositeResourceFinder extends AbstractResourceFinderAdapter
Stack
of ResourceFinder
instances.
Used to combine various finders into one instance.Modifier and Type | Field and Description |
---|---|
private ResourceFinder |
current |
private static java.util.logging.Logger |
LOGGER |
private java.util.Deque<ResourceFinder> |
stack |
Constructor and Description |
---|
CompositeResourceFinder() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Default implementation of
#close() which does nothing. |
boolean |
hasNext() |
java.lang.String |
next() |
java.io.InputStream |
open()
Open current resource.
|
void |
push(ResourceFinder iterator) |
void |
reset()
Reset the
ResourceFinder instance. |
remove
private static final java.util.logging.Logger LOGGER
private final java.util.Deque<ResourceFinder> stack
private ResourceFinder current
public boolean hasNext()
public java.lang.String next()
public java.io.InputStream open()
ResourceFinder
public void close()
AbstractResourceFinderAdapter
#close()
which does nothing.close
in interface java.lang.AutoCloseable
close
in interface ResourceFinder
close
in class AbstractResourceFinderAdapter
public void reset()
ResourceFinder
ResourceFinder
instance.
Upon calling this method the implementing class MUST reset its internal state to the initial state.public void push(ResourceFinder iterator)