net.sf.jportlet.util
Class AbstractResourceLoader
java.lang.Object
|
+--net.sf.jportlet.util.AbstractResourceLoader
- All Implemented Interfaces:
- ResourceLoader
- Direct Known Subclasses:
- ClasspathResourceLoader, WebResourceLoader
- public abstract class AbstractResourceLoader
- extends java.lang.Object
- implements ResourceLoader
Abstract Implementation of ResourceLoader
- Author:
- Herve Tchepannou
Method Summary |
java.lang.String |
buildPath(java.lang.String prefix,
java.lang.String suffix,
java.lang.String language,
java.lang.String country,
java.lang.String variant)
|
abstract java.lang.String |
getBasepath()
|
abstract java.io.InputStream |
getInputStream(java.lang.String path)
|
java.net.URL |
getResource(java.lang.String path)
|
java.io.InputStream |
getResourceAsStream(java.lang.String path)
|
java.io.InputStream |
getResourceAsStream(java.lang.String path,
java.lang.String markup)
|
java.io.InputStream |
getResourceAsStream(java.lang.String path,
java.lang.String markup,
java.util.Locale locale)
|
java.lang.String |
getResourcePath(java.lang.String path)
|
java.lang.String |
getResourcePath(java.lang.String path,
java.lang.String markup)
|
java.lang.String |
getResourcePath(java.lang.String path,
java.lang.String markup,
java.util.Locale locale)
|
abstract java.net.URL |
getURL(java.lang.String path)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractResourceLoader
public AbstractResourceLoader()
getBasepath
public abstract java.lang.String getBasepath()
- Returns:
- String
getInputStream
public abstract java.io.InputStream getInputStream(java.lang.String path)
getResource
public java.net.URL getResource(java.lang.String path)
- Specified by:
getResource
in interface ResourceLoader
- See Also:
ResourceLoader.getResource(java.lang.String)
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String path)
- Specified by:
getResourceAsStream
in interface ResourceLoader
- See Also:
ResourceLoader.getResourceAsStream(java.lang.String)
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String path,
java.lang.String markup)
- Specified by:
getResourceAsStream
in interface ResourceLoader
- See Also:
ResourceLoader.getResourceAsStream(java.lang.String, java.lang.String)
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String path,
java.lang.String markup,
java.util.Locale locale)
- Specified by:
getResourceAsStream
in interface ResourceLoader
- See Also:
ResourceLoader.getResourceAsStream(java.lang.String, java.lang.String, java.util.Locale)
getResourcePath
public java.lang.String getResourcePath(java.lang.String path)
- Specified by:
getResourcePath
in interface ResourceLoader
- See Also:
ResourceLoader.getResourcePath(java.lang.String)
getResourcePath
public java.lang.String getResourcePath(java.lang.String path,
java.lang.String markup)
- Specified by:
getResourcePath
in interface ResourceLoader
- See Also:
ResourceLoader.getResourcePath(java.lang.String, java.lang.String)
getResourcePath
public java.lang.String getResourcePath(java.lang.String path,
java.lang.String markup,
java.util.Locale locale)
- Specified by:
getResourcePath
in interface ResourceLoader
- See Also:
ResourceLoader.getResourcePath(java.lang.String, java.lang.String, java.util.Locale)
buildPath
public java.lang.String buildPath(java.lang.String prefix,
java.lang.String suffix,
java.lang.String language,
java.lang.String country,
java.lang.String variant)
getURL
public abstract java.net.URL getURL(java.lang.String path)
Copyright © 2002 Herve Tchepannou. All Rights Reserved.