S-PLUS Connect/Java v1.0

com.insightful.splus
Class SplusStringDataResult

java.lang.Object
  extended bycom.insightful.splus.SplusDataResult
      extended bycom.insightful.splus.SplusStringDataResult
All Implemented Interfaces:
Serializable

public class SplusStringDataResult
extends SplusDataResult
implements Serializable

Result of evaluating an S-PLUS expression producing String (character) vector.

See Also:
Serialized Form

Constructor Summary
SplusStringDataResult(String expr, String out, String[] warn, String err, String[] data)
           
 
Method Summary
 boolean[] getBooleanData()
          Get the data as booleans.
 byte[] getByteData()
          Get the data as bytes.
 Object getData()
          Get the String array as an Object.
 double[] getDoubleData()
          Get the data as doubles.
 float[] getFloatData()
          Get the data as floats.
 long[] getLongData()
          Get the data as longs.
 String[] getStringData()
          Get the String data.
 
Methods inherited from class com.insightful.splus.SplusDataResult
getError, getExpression, getOutput, getWarning, hasError, hasExpression, hasOutput, hasWarning, main, unit_test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplusStringDataResult

public SplusStringDataResult(String expr,
                             String out,
                             String[] warn,
                             String err,
                             String[] data)
Method Detail

getData

public Object getData()
Get the String array as an Object.

Overrides:
getData in class SplusDataResult

getStringData

public String[] getStringData()
                       throws SplusBadDataException
Get the String data.

Overrides:
getStringData in class SplusDataResult
Throws:
SplusBadDataException

getDoubleData

public double[] getDoubleData()
                       throws SplusBadDataException
Description copied from class: SplusDataResult
Get the data as doubles. If the expression did not generate doubles, this method generates an SplusBadDataException.

Overrides:
getDoubleData in class SplusDataResult
Throws:
SplusBadDataException

getBooleanData

public boolean[] getBooleanData()
                         throws SplusBadDataException
Description copied from class: SplusDataResult
Get the data as booleans. If the expression did not generate booleans, this method generates an SplusBadDataException.

Overrides:
getBooleanData in class SplusDataResult
Throws:
SplusBadDataException

getLongData

public long[] getLongData()
                   throws SplusBadDataException
Description copied from class: SplusDataResult
Get the data as longs. If the expression did not generate longs, this method generates an SplusBadDataException.

Overrides:
getLongData in class SplusDataResult
Throws:
SplusBadDataException

getFloatData

public float[] getFloatData()
                     throws SplusBadDataException
Description copied from class: SplusDataResult
Get the data as floats. If the expression did not generate floats, this method generates an SplusBadDataException.

Overrides:
getFloatData in class SplusDataResult
Throws:
SplusBadDataException

getByteData

public byte[] getByteData()
                   throws SplusBadDataException
Description copied from class: SplusDataResult
Get the data as bytes. If the expression did not generate bytes, this method generates an SplusBadDataException.

Overrides:
getByteData in class SplusDataResult
Throws:
SplusBadDataException

S-PLUS Connect/Java v1.0

Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.