org.extex.resource
Class FileFinderRPath

java.lang.Object
  extended by org.extex.resource.AbstractFinder
      extended by org.extex.resource.FileFinderRPath
All Implemented Interfaces:
LogEnabled, PropertyAware, ResourceFinder

public class FileFinderRPath
extends AbstractFinder
implements ResourceFinder, LogEnabled, PropertyAware

This file finder search recursively in a directory.

Version:
$Revision: 7057 $
Author:
Michael Niedermair, Gerd Neugebauer

Field Summary
 
Fields inherited from class org.extex.resource.AbstractFinder
ATTR_DEFAULT, ATTR_SKIP, ATTR_TRACE, EXTENSION_TAG
 
Constructor Summary
FileFinderRPath(Configuration configuration)
          Creates a new object.
 
Method Summary
 NamedInputStream findResource(java.lang.String name, java.lang.String type)
          Find a resource which can be used for reading.
 void setProperties(java.util.Properties prop)
          Setter for the properties.
 
Methods inherited from class org.extex.resource.AbstractFinder
enableLogging, enableTracing, getConfiguration, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.extex.resource.ResourceFinder
enableTracing
 
Methods inherited from interface org.extex.framework.logger.LogEnabled
enableLogging
 

Constructor Detail

FileFinderRPath

public FileFinderRPath(Configuration configuration)
Creates a new object.

Parameters:
configuration - the encapsulated configuration object
Method Detail

findResource

public NamedInputStream findResource(java.lang.String name,
                                     java.lang.String type)
                              throws ConfigurationException
Find a resource which can be used for reading. If the search fails then null is returned.

Specified by:
findResource in interface ResourceFinder
Parameters:
name - the base name of the resource
type - the type, i.e. the extension
Returns:
the file or null if none could be found
Throws:
ConfigurationException - in case of an exception
See Also:
ResourceFinder.findResource(java.lang.String, java.lang.String)

setProperties

public void setProperties(java.util.Properties prop)
Setter for the properties.

Specified by:
setProperties in interface PropertyAware
Parameters:
prop - the properties to use for configuration
See Also:
PropertyAware.setProperties(java.util.Properties)