All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.hdflib.HDFArray

java.lang.Object
   |
   +----ncsa.hdf.hdflib.HDFArray

public class HDFArray
extends Object
This is a class for handling multidimensional arrays for HDF.

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 Index

 o HDFArray()
 o HDFArray(Object)

Method Index

 o arrayify(byte[])
Given a one-dimensional array of numbers, convert it to a java array of the shape and size passed to the constructor.
 o byteify()
Given a Java array of numbers, convert it to a one-dimensional array of bytes in correct native order.
 o emptyBytes()
allocate a one-dimensional array of bytes sufficient to store the array.

Constructors

 o HDFArray
 public HDFArray()
 o HDFArray
 public HDFArray(Object anArray) throws HDFException

Methods

 o emptyBytes
 public byte[] emptyBytes()
allocate a one-dimensional array of bytes sufficient to store the array.

 o byteify
 public byte[] byteify() throws HDFException
Given a Java array of numbers, convert it to a one-dimensional array of bytes in correct native order.

 o arrayify
 public Object arrayify(byte bytes[]) throws HDFException
Given a one-dimensional array of numbers, convert it to a java array of the shape and size passed to the constructor.


All Packages  Class Hierarchy  This Package  Previous  Next  Index