|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.grib.GribResourceReader
public abstract class GribResourceReader
A class that allows external packages to define how to read resource files.
| Constructor Summary | |
|---|---|
GribResourceReader()
|
|
| Method Summary | |
|---|---|
static String |
getFileRoot(String f)
_more_ |
static InputStream |
getInputStream(String resourceName)
Get the input stream to the given resource |
static InputStream |
getInputStream(String resourceName,
Class originClass)
Get the input stream to the given resource |
abstract InputStream |
openInputStream(String resourceName)
Ovderridden by instances of the singleton |
static void |
setGribResourceReader(GribResourceReader reader)
Set the singleton reader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GribResourceReader()
| Method Detail |
|---|
public static void setGribResourceReader(GribResourceReader reader)
reader - The reader
public abstract InputStream openInputStream(String resourceName)
throws IOException
resourceName - The resource name. May be a file, url, java resource, etc.
IOException - _more_public static InputStream getInputStream(String resourceName)
resourceName - The resource name. May be a file, url, java resource, etc.
public static InputStream getInputStream(String resourceName,
Class originClass)
resourceName - The resource name. May be a file, url, java resource, etc.originClass - If non-null we use this to find java resources that are relative to a class
public static String getFileRoot(String f)
f - _more_
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||