com.tc.object.util
Class JarResourceLoader

java.lang.Object
  extended by com.tc.object.util.JarResourceLoader

public final class JarResourceLoader
extends java.lang.Object

Helper methods to load resources from a jar


Method Summary
static java.io.InputStream getJarResource(java.net.URL location, java.lang.String resource)
          Load a resource file from a jar file at location
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJarResource

public static java.io.InputStream getJarResource(java.net.URL location,
                                                 java.lang.String resource)
                                          throws java.io.IOException
Load a resource file from a jar file at location

Parameters:
location - The URL to the JAR file
resource - The resource string
Returns:
Input stream to the resource - close it when you're done
Throws:
java.io.IOException - If some bad IO happens


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.