public enum RScriptLibrary extends java.lang.Enum<RScriptLibrary>
Enum Constant and Description |
---|
GSALIB |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
R_LIBRARY_SUFFIX |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLibraryName() |
java.lang.String |
getResourcePath() |
static RScriptLibrary |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RScriptLibrary[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
java.io.File |
writeLibraryToTempFile(java.io.File targetDir)
Retrieve the resource for this library and write it to a temp File in
targetDir . |
java.io.File |
writeTemp()
Writes the library source code to a temporary tar.gz file and returns the path.
|
public static final RScriptLibrary GSALIB
public static final java.lang.String R_LIBRARY_SUFFIX
public static RScriptLibrary[] values()
for (RScriptLibrary c : RScriptLibrary.values()) System.out.println(c);
public static RScriptLibrary valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getLibraryName()
public java.lang.String getResourcePath()
public java.io.File writeTemp()
public java.io.File writeLibraryToTempFile(java.io.File targetDir)
targetDir
. The File is
automatically scheduled for deletion on exit.targetDir
- target directory where the File should be written