net.sf.jportlet.util
Class ClasspathResourceLoader

java.lang.Object
  |
  +--net.sf.jportlet.util.AbstractResourceLoader
        |
        +--net.sf.jportlet.util.ClasspathResourceLoader
All Implemented Interfaces:
ResourceLoader

public class ClasspathResourceLoader
extends AbstractResourceLoader

Implementation of ResourceLoader that retrieve resource from the classpath

Author:
Herve Tchepannou

Constructor Summary
ClasspathResourceLoader(java.lang.Class type)
           
 
Method Summary
 java.lang.String getBasepath()
           
 java.io.InputStream getInputStream(java.lang.String path)
           
 java.net.URL getURL(java.lang.String path)
           
 
Methods inherited from class net.sf.jportlet.util.AbstractResourceLoader
buildPath, getResource, getResourceAsStream, getResourceAsStream, getResourceAsStream, getResourcePath, getResourcePath, getResourcePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathResourceLoader

public ClasspathResourceLoader(java.lang.Class type)
See Also:
AbstractResourceLoader.getResourceAsStream(java.lang.String)
Method Detail

getBasepath

public java.lang.String getBasepath()
Specified by:
getBasepath in class AbstractResourceLoader
Returns:
String
See Also:
AbstractResourceLoader.getBasepath()

getInputStream

public java.io.InputStream getInputStream(java.lang.String path)
Specified by:
getInputStream in class AbstractResourceLoader
See Also:
AbstractResourceLoader.getResourceAsStream(java.lang.String)

getURL

public java.net.URL getURL(java.lang.String path)
Specified by:
getURL in class AbstractResourceLoader
See Also:
AbstractResourceLoader.getURL(java.lang.String)


Copyright © 2002 Herve Tchepannou. All Rights Reserved.