com.googlecode.jinahya.util.fsm
Class TaskContext.FileResourceLoader

java.lang.Object
  extended by 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.


Constructor Summary
protected TaskContext.FileResourceLoader()
           
 
Method Summary
 InputStream load(String resourceName)
          Loads resource denoted by given resourceName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskContext.FileResourceLoader

protected TaskContext.FileResourceLoader()
Method Detail

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.