public class ModalArrayIoKernel extends Object implements ArrayIoKernel
ArrayIoKernel
that is a gateway to multiple I/O schemes.Constructor and Description |
---|
ModalArrayIoKernel()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
<T extends Array<T,?>> |
getBytes(T array)
Converts an
Array into byte s. |
<T extends Array<T,?>> |
parse(byte[] data)
Parses an
Array from byte s. |
void |
useMatlabIo()
Attempts to use the underlying
MatlabIoKernel . |
public void useMatlabIo()
MatlabIoKernel
.public <T extends Array<T,?>> byte[] getBytes(T array)
ArrayIoKernel
Array
into byte
s.getBytes
in interface ArrayIoKernel
T
- the Array
type.array
- the Array
.byte
s.public <T extends Array<T,?>> T parse(byte[] data)
ArrayIoKernel
Array
from byte
s.parse
in interface ArrayIoKernel
T
- the inferred Array
type.data
- the byte
s.Array
.