public final class CompositeResourceFinder extends AbstractResourceFinderAdapter
Stack
of ResourceFinder
instances.
Used to combine various finders into one instance.Constructor and Description |
---|
CompositeResourceFinder() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Default implementation of
#close() which does nothing. |
boolean |
hasNext() |
String |
next() |
InputStream |
open()
Open current resource.
|
void |
push(ResourceFinder iterator) |
void |
reset()
Reset the
ResourceFinder instance. |
remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public boolean hasNext()
public String next()
public InputStream open()
ResourceFinder
public void close()
AbstractResourceFinderAdapter
#close()
which does nothing.close
in interface 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)
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.