|
S-PLUS Connect/Java v1.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.insightful.splus.SplusDataResult
public class SplusDataResult
Result information from a query to the S-PLUS engine.
Constructor Summary | |
---|---|
SplusDataResult(String out,
String err,
String expr,
String[] warn)
Create a result with no data. |
Method Summary | |
---|---|
boolean[] |
getBooleanData()
Get the data as booleans. |
byte[] |
getByteData()
Get the data as bytes. |
Object |
getData()
Get the data as an Object. |
double[] |
getDoubleData()
Get the data as doubles. |
String |
getError()
Get the error message. |
String |
getExpression()
Get the expression evaluated, formatted to the same width as the output. |
float[] |
getFloatData()
Get the data as floats. |
long[] |
getLongData()
Get the data as longs. |
String |
getOutput()
Get the text output that would be printed to standard out. |
String[] |
getStringData()
Get the data as Strings. |
String[] |
getWarning()
Get the warning messages. |
boolean |
hasError()
Test whether there is an error message. |
boolean |
hasExpression()
Test whether there is an expression. |
boolean |
hasOutput()
Test whether there is any text output. |
boolean |
hasWarning()
Test whether there are any warnings. |
static void |
main(String[] args)
Run the unit test. |
static int |
unit_test()
Routine for unit testing of this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SplusDataResult(String out, String err, String expr, String[] warn)
Method Detail |
---|
public Object getData()
public String getOutput()
public String getError()
public String getExpression()
public String[] getWarning()
public boolean hasOutput()
public boolean hasError()
public boolean hasExpression()
public boolean hasWarning()
public double[] getDoubleData() throws SplusBadDataException
SplusBadDataException
public boolean[] getBooleanData() throws SplusBadDataException
SplusBadDataException
public String[] getStringData() throws SplusBadDataException
SplusBadDataException
public long[] getLongData() throws SplusBadDataException
SplusBadDataException
public float[] getFloatData() throws SplusBadDataException
SplusBadDataException
public byte[] getByteData() throws SplusBadDataException
SplusBadDataException
public static int unit_test()
public static void main(String[] args)
|
S-PLUS Connect/Java v1.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |