com.googlecode.jinahya.util.fsm
Class FileResourceLoader

java.lang.Object
  extended by com.googlecode.jinahya.util.fsm.FileResourceLoader
All Implemented Interfaces:
ResourceLoader

public class FileResourceLoader
extends Object
implements ResourceLoader

A ResourceLoader implementation using File I/O.

Author:
Jin Kwon

Constructor Summary
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

FileResourceLoader

public FileResourceLoader()
Method Detail

load

public InputStream load(String resourceName)
                 throws IOException,
                        FSMException
Description copied from interface: ResourceLoader
Loads resource denoted by given resourceName.

Specified by:
load in interface 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.