|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. the number of elements) |
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, createDoubleMatrix, 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 vectorpublic REXPRaw(byte[] load, REXPList attr)
load
- payload of the raw vectorattr
- attributes for the resulting R objectMethod Detail |
---|
public int length()
REXPVector
length
in class REXPVector
public boolean isRaw()
REXP
REXP
object is a raw vector
isRaw
in class REXP
true
if the receiver is a raw vector, false
otherwisepublic byte[] asBytes()
REXP
asBytes
in class REXP
public java.lang.Object asNativeJavaObject()
REXP
int[1]
and not Integer
).
asNativeJavaObject
in class REXP
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |