|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<ResourceFinder>
org.extex.resource.ResourceFinderList
public class ResourceFinderList
This class provides a means to combine several resource finders to be queried as one.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
ResourceFinderList()
Creates a new object. |
|
| Method Summary | |
|---|---|
boolean |
add(ResourceFinder finder)
|
void |
enableTracing(boolean flag)
Enable or disable the tracing. |
NamedInputStream |
findResource(java.lang.String name,
java.lang.String type)
Find a resource which can be used for reading. |
void |
setParent(ResourceFinder theParent)
Setter for the parent resource finder. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.ArrayList |
|---|
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public ResourceFinderList()
| Method Detail |
|---|
public boolean add(ResourceFinder finder)
add in interface java.util.Collection<ResourceFinder>add in interface java.util.List<ResourceFinder>add in class java.util.ArrayList<ResourceFinder>ArrayList.add(java.lang.Object)public void enableTracing(boolean flag)
enableTracing in interface ResourceFinderflag - indicator whether tracing should be turned on or off.ResourceFinder.enableTracing(boolean)
public NamedInputStream findResource(java.lang.String name,
java.lang.String type)
throws ConfigurationException
null is returned.
findResource in interface ResourceFindername - the base name of the resourcetype - the type, i.e. the extension
null if none could be found
ConfigurationException - in case of an exceptionResourceFinder.findResource(java.lang.String,
java.lang.String)public void setParent(ResourceFinder theParent)
setParent in interface RecursiveFindertheParent - the parent finder for recursive invocationRecursiveFinder.setParent(
org.extex.resource.ResourceFinder)public java.lang.String toString()
toString in class java.util.AbstractCollection<ResourceFinder>Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||