public abstract class Dap4Util
extends java.lang.Object
| Constructor and Description |
|---|
Dap4Util() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
convertVector(dap4.core.dmr.DapType dsttype,
dap4.core.dmr.DapType srctype,
java.lang.Object src)
Convert an array of one type of values to another type
|
static java.lang.Object |
createVector(dap4.core.dmr.AtomicType atype,
long count) |
static int |
daptypeSize(dap4.core.dmr.AtomicType atomtype)
Conmpute the size, in databuffer,
of the daptype wrt to a serialization;
0 if undefined.
|
public static int daptypeSize(dap4.core.dmr.AtomicType atomtype)
atomtype - The type of interestpublic static java.lang.Object createVector(dap4.core.dmr.AtomicType atype,
long count)
throws dap4.core.data.DataException
dap4.core.data.DataExceptionpublic static java.lang.Object convertVector(dap4.core.dmr.DapType dsttype,
dap4.core.dmr.DapType srctype,
java.lang.Object src)
throws dap4.core.data.DataException
dsttype - target typesrctype - source typesrc - array of values to convertdap4.core.data.DataException