com.go.trove.classfile
Class ResourceClassFileDataLoader

java.lang.Object
  |
  +--com.go.trove.classfile.ResourceClassFileDataLoader
All Implemented Interfaces:
ClassFileDataLoader

public class ResourceClassFileDataLoader
extends java.lang.Object
implements ClassFileDataLoader

ClassFileDataLoader implementation that loads class file data as resources from a ClassLoader.

Version:
1 , 00/11/27
Author:
Brian S O'Neill

Constructor Summary
ResourceClassFileDataLoader()
          Loads resources using the ClassLoader that loaded this class.
ResourceClassFileDataLoader(java.lang.ClassLoader loader)
           
 
Method Summary
 java.io.InputStream getClassData(java.lang.String name)
          Returns null if class data not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceClassFileDataLoader

public ResourceClassFileDataLoader()
Loads resources using the ClassLoader that loaded this class.

ResourceClassFileDataLoader

public ResourceClassFileDataLoader(java.lang.ClassLoader loader)
Parameters:
loader - ClassLoader for finding resources; if null, use system ClassLoader.
Method Detail

getClassData

public java.io.InputStream getClassData(java.lang.String name)
Description copied from interface: ClassFileDataLoader
Returns null if class data not found. The given name must use '.' characters to separate packages and top-level classes. A '$' character separates inner class names.
Specified by:
getClassData in interface ClassFileDataLoader
Following copied from interface: com.go.trove.classfile.ClassFileDataLoader
Parameters:
name - fully qualified class name