echoxul.view.locator
Class FileResourceLocator

java.lang.Object
  extended byechoxul.view.locator.FileResourceLocator
All Implemented Interfaces:
ResourceLocator

public class FileResourceLocator
extends java.lang.Object
implements ResourceLocator

ResourceLocator which reads resources from the file system.

Author:
Terry Laurenzo

Constructor Summary
FileResourceLocator(java.io.File baseDir)
           
 
Method Summary
 org.xml.sax.InputSource findResource(java.lang.String path)
          Convert a path to an InputSource in an implementation specific way.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileResourceLocator

public FileResourceLocator(java.io.File baseDir)
Parameters:
baseDir -
Method Detail

findResource

public org.xml.sax.InputSource findResource(java.lang.String path)
Description copied from interface: ResourceLocator
Convert a path to an InputSource in an implementation specific way. Must return null if the path cannot be resolved by this instance.

Specified by:
findResource in interface ResourceLocator
Parameters:
path -
Returns:
An InputSource or null if not found.
See Also:
ResourceLocator.findResource(java.lang.String)


Copyright © 2004 Terry Laurenzo. All Rights Reserved.