net.sf.jportlet.util
Interface ResourceLoader
- All Known Implementing Classes:
- AbstractResourceLoader
- public interface ResourceLoader
The ResourceLoader
load resources as java.io.InputStream
or bind resources to their path in the application context.
If a resource named foo.txt
is requested to the resource loader,
it will search the following files:
- <client-markup>/foo_<locale-language>_<locale-country>_<locale-variant>.txt
- <client-markup>/foo_<locale-language>_<locale-country>.txt
- <client-markup>/foo_<locale-language>.txt
- <client-markup>/foo.txt
- Author:
- Herve Tchepannou
Method Summary |
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)
|
getResource
public java.net.URL getResource(java.lang.String path)
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String path)
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String path,
java.lang.String markup)
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String path,
java.lang.String markup,
java.util.Locale locale)
getResourcePath
public java.lang.String getResourcePath(java.lang.String path)
getResourcePath
public java.lang.String getResourcePath(java.lang.String path,
java.lang.String markup)
getResourcePath
public java.lang.String getResourcePath(java.lang.String path,
java.lang.String markup,
java.util.Locale locale)
Copyright © 2002 Herve Tchepannou. All Rights Reserved.