public abstract class GribResourceReader extends Object
| Constructor and Description |
|---|
GribResourceReader() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getFilename(String f) |
static String |
getFileRoot(String f) |
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)
Overridden by instances of the singleton
|
static void |
setGribResourceReader(GribResourceReader reader)
Set the singleton reader.
|
public static void setGribResourceReader(GribResourceReader reader)
reader - The readerpublic 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 classCopyright © 1999-2013 UCAR/Unidata. All Rights Reserved.