com.googlecode.jinahya.util.fsm
Class ClassResourceLoader

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

public class ClassResourceLoader
extends Object
implements ResourceLoader

A ResourceLoader implementation using a ClassLoader.

Author:
Jin Kwon

Constructor Summary
ClassResourceLoader(ClassLoader classLoader)
          Creates a new instance.
 
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

ClassResourceLoader

public ClassResourceLoader(ClassLoader classLoader)
Creates a new instance.

Parameters:
classLoader -
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.