org.sbml.jsbml.resources
public final class Resource extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
Resource() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytesFromResourceLocation(java.lang.String rawResrcLoc)
Gets the byte data from a file at the given resource location.
|
private byte[] |
getBytesFromStream(java.io.InputStream stream)
Gets the byte data from a file.
|
static Resource |
getInstance() |
private java.io.FileInputStream |
getStreamFromFile(java.lang.String fileName)
Gets the byte data from a file.
|
java.io.InputStream |
getStreamFromResourceLocation(java.lang.String rawResrcLoc)
Gets the byte data from a file at the given resource location.
|
static java.util.Properties |
readProperties(java.lang.String resourceName) |
private static Resource resource
public static Resource getInstance()
public static java.util.Properties readProperties(java.lang.String resourceName)
throws java.io.IOException
resourceName - java.io.IOExceptionpublic byte[] getBytesFromResourceLocation(java.lang.String rawResrcLoc)
rawResrcLoc - Description of the Parameterprivate byte[] getBytesFromStream(java.io.InputStream stream)
fileName - Description of the Parameterprivate java.io.FileInputStream getStreamFromFile(java.lang.String fileName)
fileName - Description of the Parameterpublic java.io.InputStream getStreamFromResourceLocation(java.lang.String rawResrcLoc)
rawResrcLoc - Description of the Parameter