jgnash.ui.util
Class HTMLResource
java.lang.Object
jgnash.ui.util.HTMLResource
public class HTMLResource
- extends java.lang.Object
This class is for returning URL's to localized html files. At this time
it does not support variants or countries... only language.
- Version:
- $Id$
- Author:
- Craig Cavanaugh
|
Field Summary |
private static java.lang.String |
DEFAULT
|
private static java.lang.String |
ROOTPATH
|
|
Constructor Summary |
private |
HTMLResource()
Contains only static methods |
|
Method Summary |
static java.io.InputStream |
getInputStream(java.lang.String fileName)
Find a locale specific html file given the file name. |
static java.net.URL |
getURL(java.lang.String fileName)
Find a locale specific html file given the file name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROOTPATH
private static final java.lang.String ROOTPATH
- See Also:
- Constant Field Values
DEFAULT
private static final java.lang.String DEFAULT
- See Also:
- Constant Field Values
HTMLResource
private HTMLResource()
- Contains only static methods
getURL
public static java.net.URL getURL(java.lang.String fileName)
- Find a locale specific html file given the file name.
- Parameters:
fileName - the file name of the html file to look for.
- Returns:
- a URL for reading the resource, or null if the resource could not be found
getInputStream
public static java.io.InputStream getInputStream(java.lang.String fileName)
- Find a locale specific html file given the file name.
- Parameters:
fileName - the file name of the html file to look for.
- Returns:
- a URL for reading the resource, or null if the resource could not be found