echoxul.view.locator
Class DynamicResourceLocator
java.lang.Object
echoxul.view.locator.DynamicResourceLocator
- All Implemented Interfaces:
- ResourceLocator
- public class DynamicResourceLocator
- extends java.lang.Object
- implements ResourceLocator
Implements a ResourceLocator which will only find resources that
are programatically inserted.
- Author:
- Terry Laurenzo
Method Summary |
void |
addResource(java.lang.String path,
byte[] contents)
|
void |
addResource(java.lang.String path,
java.lang.String contents)
|
void |
deleteAll()
|
void |
deleteResource(java.lang.String path)
|
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 |
DynamicResourceLocator
public DynamicResourceLocator()
addResource
public void addResource(java.lang.String path,
java.lang.String contents)
addResource
public void addResource(java.lang.String path,
byte[] contents)
deleteResource
public void deleteResource(java.lang.String path)
deleteAll
public void deleteAll()
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.