com.googlecode.jinahya.util.fsm
Class TaskContext.FileResourceLoader
java.lang.Object
com.googlecode.jinahya.util.fsm.TaskContext.FileResourceLoader
- All Implemented Interfaces:
- TaskContext.ResourceLoader
- Enclosing class:
- TaskContext
protected static class TaskContext.FileResourceLoader
- extends Object
- implements TaskContext.ResourceLoader
A ResourceLoader implementation using File I/O.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskContext.FileResourceLoader
protected TaskContext.FileResourceLoader()
load
public InputStream load(String resourceName)
throws IOException,
FSMException
- Description copied from interface:
TaskContext.ResourceLoader
- Loads resource denoted by given
resourceName.
- Specified by:
load in interface TaskContext.ResourceLoader
- Parameters:
resourceName - resource name
- Returns:
- loaded resource stream; never null
- Throws:
IOException - if an I/O error occurs
FSMException - if an error occurs
Copyright © 2011. All Rights Reserved.