|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.rosuda.REngine.REXP
org.rosuda.REngine.REXPVector
org.rosuda.REngine.REXPRaw
public class REXPRaw
REXPRaw represents a raw vector in R - essentially a sequence of bytes.
| Field Summary |
|---|
| Fields inherited from class org.rosuda.REngine.REXP |
|---|
attr, maxDebugItems |
| Constructor Summary | |
|---|---|
REXPRaw(byte[] load)
create a new raw vector with the specified payload |
|
REXPRaw(byte[] load,
REXPList attr)
create a new raw vector with the specified payload and attributes |
|
| Method Summary | |
|---|---|
byte[] |
asBytes()
returns the contents as an array of bytes (if supported by the represented object) |
java.lang.Object |
asNativeJavaObject()
attempt to represent the REXP by a native Java object and return it. |
boolean |
isRaw()
check whether the REXP object is a raw vector |
int |
length()
returns the length of the vector (i.e. |
| Methods inherited from class org.rosuda.REngine.REXPVector |
|---|
isNA, isVector, toDebugString, toString |
| Methods inherited from class org.rosuda.REngine.REXP |
|---|
_attr, asDouble, asDoubleMatrix, asDoubles, asFactor, asInteger, asIntegers, asList, asString, asStrings, createDataFrame, dim, getAttribute, hasAttribute, inherits, isComplex, isEnvironment, isExpression, isFactor, isInteger, isLanguage, isList, isLogical, isNull, isNumeric, isPairList, isRecursive, isReference, isString, isSymbol |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public REXPRaw(byte[] load)
load - payload of the raw vector
public REXPRaw(byte[] load,
REXPList attr)
load - payload of the raw vectorattr - attributes for the resulting R object| Method Detail |
|---|
public int length()
REXPVector
length in class REXPVectorpublic boolean isRaw()
REXPREXP object is a raw vector
isRaw in class REXPtrue if the receiver is a raw vector, false otherwisepublic byte[] asBytes()
REXP
asBytes in class REXPpublic java.lang.Object asNativeJavaObject()
REXPint[1] and not Integer).
asNativeJavaObject in class REXP
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||