gov.llnl.babel
Class ResourceLoader

java.lang.Object
  extended by gov.llnl.babel.ResourceLoader

public class ResourceLoader
extends java.lang.Object

Provide a method to get an InputStream for a resource in the Babel Jar file regardless of the JDK being used. Kaffe currently doesn't returns null for getClass().getClassLoader().


Constructor Summary
ResourceLoader()
           
 
Method Summary
 java.io.InputStream getResourceStream(java.lang.String resource)
           
 java.io.InputStream getResourceStream(java.lang.String resource, java.lang.String jarFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoader

public ResourceLoader()
Method Detail

getResourceStream

public java.io.InputStream getResourceStream(java.lang.String resource,
                                             java.lang.String jarFile)
                                      throws java.io.IOException
Throws:
java.io.IOException

getResourceStream

public java.io.InputStream getResourceStream(java.lang.String resource)
                                      throws java.io.IOException
Throws:
java.io.IOException