public class HDFArray
extends java.lang.Object
The purpose is to allow the storage and retrieval of arbitrary array types containing scientific data.
The methods support the conversion of an array to and from Java to a one-dimensional array of bytes suitable for I/O by the C library.
This class heavily uses the HDFNativeData class to convert between Java and C representations.
Constructor and Description |
---|
HDFArray(java.lang.Object anArray) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
arrayify(byte[] bytes) |
byte[] |
byteify() |
byte[] |
emptyBytes() |
public HDFArray(java.lang.Object anArray) throws HDFException
HDFException
public byte[] emptyBytes() throws HDFException
HDFException
- .public byte[] byteify() throws HDFException
HDFException
- thrown for errors:
object is not array: HDFJavaExceptionpublic java.lang.Object arrayify(byte[] bytes) throws HDFException
bytes
- a one-dimensional array of numbersHDFException
- thrown for errors:
object not an array: HDFJavaException