com.anthonyeden.lib.resource
Class VFSResourceLoader
java.lang.Object
com.anthonyeden.lib.resource.AbstractResourceLoader
com.anthonyeden.lib.resource.VFSResourceLoader
- All Implemented Interfaces:
- ResourceLoader
- public class VFSResourceLoader
- extends AbstractResourceLoader
Implementation of the ResourceLoader interface which loads data from
a virtual file system.
- Author:
- Anthony Eden
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VFSResourceLoader
public VFSResourceLoader()
getFileSystemManager
public org.apache.commons.vfs.FileSystemManager getFileSystemManager()
throws org.apache.commons.vfs.FileSystemException
- Get the FileSystemManager.
- Returns:
- The FileSystemManager
- Throws:
org.apache.commons.vfs.FileSystemException
setFileSystemManager
public void setFileSystemManager(org.apache.commons.vfs.FileSystemManager fileSystemManager)
- Set the FileSystemManager.
- Parameters:
fileSystemManager
- The new FileSystemManager
loadResource
public void loadResource(java.lang.String path,
ResourceRecipient handler)
throws ResourceException
- Load the resource specified by the given path. Calling this method will
cause the resource to be loaded and monitored.
- Overrides:
loadResource
in class AbstractResourceLoader
- Parameters:
path
- The pathhandler
- The ResourceReceipient callback
- Throws:
ResourceException
loadResource
public void loadResource(java.lang.String path,
ResourceRecipient handler,
boolean monitor)
throws ResourceException
- Load the resource specified by the given path. If monitor is true then
the ResourceLoader implementation will monitor the resource and call the
ResourceRecipient each time the resource is modified.
- Parameters:
path
- The pathhandler
- The ResourceRecipient callbackmonitor
- True to monitor the resource
- Throws:
ResourceException
Copyright (c) 2000-2003 Anthony Eden. All Rights Reserved.