com.paypal.base.util
Class ResourceLoader

java.lang.Object
  extended by com.paypal.base.util.ResourceLoader

public class ResourceLoader
extends Object

A class to locate resources and retrieve their contents. To find the resource the class searches the CLASSPATH first, then Resource.class.getResource("/" + name). If the Resource finds a "file:" URL, the file path will be treated as a file. Otherwise, the path is treated as a URL.


Constructor Summary
ResourceLoader(String name)
          ResourceLoader to load the resource specified by name
 
Method Summary
 InputStream getInputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoader

public ResourceLoader(String name)
ResourceLoader to load the resource specified by name

Parameters:
name - Name of the resource to load
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Throws:
IOException


Copyright © 2015. All Rights Reserved.