![]() |
HDF
4.3.0
API Reference
|
This is the Java interface for the HDF 4.2 library.
This code is the called by Java programs to access the entry points of the HDF 4.2 library. Each routine wraps a single HDF entry point, generally with the arguments and return codes analogous to the C interface.
These routines use the class HDFArray to handle arrays of arbitrary type and shape.
Mapping of arguments for Java
In general, arguments to the HDF Java API are straightforward translations from the 'C' API described in the HDF Reference Manual.
| C | Java |
| int, intn, int32, uint32 | int |
| short, uint16, int16 | short |
| float, float32 | float |
| double, float64 | double |
| char, uchar, int8, uint8 | byte |
| char * (i.e., string) | java.lang.String |
| void | void |
| void *, void *, char * (meaning `‘any’') | Special – see HDFArray |
General Rules for Passing Arguments and Results
In general, arguments passed IN to Java are the analogous basic types, as above. The exception is for arrays, which are discussed below.
The return value of Java methods is also the analogous type, as above. A major exception to that rule is that all HDF functions that return SUCCEED/FAIL are declared boolean in the Java version, rather than intn or whatever. (Functions that return a value or else FAIL are declared the equivalent to the C function.)
Java does not support pass by reference of arguments, so arguments that are returned through OUT parameters must be wrapped in an object or array. The Java API for HDF consistently wraps arguments in arrays.
For instance, a function that returns two integers is declared:
void HDFdummy( int32* a1, int32* a2)
For the Java interface, this would be declared:
public static native void HDFdummy(int args[]);
where a1 is args[0] and a2 is args[1].
All the routines where this convention is used will have specific documentation of the details, given below.
Arrays
HDF needs to read and write multi-dimensional arrays of many types. The HDF API is self-describing, with the data for the array passed as a block of bytes, for instance,
int SDreaddata(int sdsid, int32 *start, int32 * stride,
int32 *count, void * data);
<p<blockquote>
The data parameter may be any valid numeric type, and is a contiguous block of bytes that is the data for a multi-dimensional array.
For Java, this is a problem, as the type of data must be declared. Furthermore, multidimensional arrays are definitely not laid out contiguously in memory. It would be infeasible to declare a separate routine for every combination of number type and dimensionality. For that reason, the HDFArray class is used to discover the type, shape, and size of the data array at run time, and to convert to and from contiguous bytes. The upshot is that the data can be passed as an `‘Object’', and the Java API will translate to and from the appropriate bytes. So the function above would be declared:
int SDreaddata(int sdsid, int[] start, int[] stride, int[] count, Object data);
and the parameter data can be any multi-dimensional array of numbers, such as float[][], or int[][][]. Compression and Chunk Information
The HDF library passes the parameters needed by compression and chunking through C structures (actually, unions). The Java interface passes these as instances of subclasses of class HDFCompInfo and HDFChunkInfo respectively.
See: hdf.hdflib.HDFChunkInfo, and
Inheritance diagram for HDFLibrary:Static Public Member Functions | |
| static void | loadH4Lib () |
| static final String | getJHIVersion () |
| static long | Hopen (String filename) throws HDFException |
| static long | Hopen (String filename, int access) throws HDFException |
| static native long | Hopen (String filename, int access, int ndds) throws HDFException |
| static native boolean | Hclose (long fid) throws HDFException |
| static native int | HDdont_atexit () throws HDFException |
| static native boolean | Hishdf (String fileName) throws HDFException |
| static int | Hnumber (long fid) throws HDFException |
| static native int | Hnumber (long fid, int tagtype) throws HDFException |
| static native int | DFKNTsize (long numbertype) throws HDFException |
| static native String | HDgetNTdesc (int nt) throws HDFException |
| static native boolean | Hcache (long file_id, int cache_switch) throws HDFException |
| static native boolean | Hgetfileversion (long file_id, int[] vers, String[] string) throws HDFException |
| static native boolean | Hgetlibversion (int[] vers, String[] string) throws HDFException |
| static native boolean | Hsetaccesstype (long h_id, int access_type) throws HDFException |
| static native boolean | Hsync (long file_id) throws HDFException |
| static native int | ANstart (long fid) throws HDFException |
| static native boolean | ANend (long an_id) throws HDFException |
| static native boolean | ANendaccess (long an_id) throws HDFException |
| static native boolean | ANfileinfo (long an_id, int[] info) throws HDFException |
| static native int | ANselect (long an_id, int index, int anntype) throws HDFException |
| static native int | ANnumann (long an_id, int anntype, short tag, short ref) throws HDFException |
| static native short | ANatype2tag (int antag) throws HDFException |
| static native int | ANtag2atype (short anttype) throws HDFException |
| static native int | ANannlist (long an_id, int anntype, short tag, short ref, int[] ann_list) throws HDFException |
| static native int | ANannlen (long ann_id) throws HDFException |
| static native boolean | ANreadann (long ann_id, String[] annbuf, int maxlen) throws HDFException |
| static native int | ANcreate (long an_id, short tag, short ref, int type) throws HDFException |
| static native int | ANcreatef (long an_id, int type) throws HDFException |
| static native int | ANget_tagref (long an_id, int index, int type, short[] tagref) throws HDFException |
| static native boolean | ANid2tagref (long an_id, short[] tagref) throws HDFException |
| static native long | ANtagref2id (long an_id, short tag, short ref) throws HDFException |
| static native boolean | ANwriteann (long ann_id, String label, int ann_length) throws HDFException |
| static native boolean | DFPaddpal (String filename, byte[] palette) throws HDFException |
| static native boolean | DFPgetpal (String filename, byte[] palette) throws HDFException |
| static native short | DFPlastref () throws HDFException |
| static native int | DFPnpals (String filename) throws HDFException |
| static native boolean | DFPputpal (String filename, byte[] palette, int overwrite, String filemode) throws HDFException |
| static boolean | DFPputpal (String filename, byte[] palette, boolean overwrite, String filemode) throws HDFException |
| static native boolean | DFPreadref (String filename, short ref) throws HDFException |
| static native short | DFPrestart () throws HDFException |
| static native boolean | DFPwriteref (String filename, short ref) throws HDFException |
| static native int | GRstart (long fid) throws HDFException |
| static native boolean | GRend (long grid) throws HDFException |
| static native boolean | GRfileinfo (long grid, int[] args) throws HDFException |
| static native boolean | GRgetchunkinfo (long sdsid, HDFChunkInfo chunk_def, int[] flag) throws HDFException |
| static native int | GRselect (long grid, int index) throws HDFException |
| static native int | GRnametoindex (long grid, String name) throws HDFException |
| static native boolean | GRgetiminfo (long grid, String[] gr_name, int[] args, int[] dim_sizes) throws HDFException |
| static native boolean | GRreadimage (long grid, int[] start, int[] stride, int[] count, byte[] data) throws HDFException |
| static boolean | GRreadimage (long grid, int[] start, int[] stride, int[] count, Object theData) throws HDFException |
| static native boolean | GRendaccess (long riid) throws HDFException |
| static native short | GRidtoref (long riid) throws HDFException |
| static native int | GRreftoindex (long grid, short ref) throws HDFException |
| static native boolean | GRreqlutil (long riid, int interlace) throws HDFException |
| static native boolean | GRreqimageil (long rrid, int interlace) throws HDFException |
| static native int | GRgetlutid (long rrid, int index) throws HDFException |
| static native int | GRgetnluts (long rrid) throws HDFException |
| static native boolean | GRgetlutinfo (long lutid, int[] args) throws HDFException |
| static native boolean | GRreadlut (long lutid, byte[] data) throws HDFException |
| static boolean | GRreadlut (long lutid, Object theData) throws HDFException |
| static native boolean | GRattrinfo (long id, int index, String[] name, int[] argv) throws HDFException |
| static native boolean | GRgetattr (long id, int index, byte[] data) throws HDFException |
| static boolean | GRgetattr (long id, int index, Object theData) throws HDFException |
| static native int | GRfindattr (long id, String name) throws HDFException |
| static native int | GRcreate (long gr_id, String name, int ncomp, long data_type, int interlace_mode, int[] dim_sizes) throws HDFException |
| static native short | GRluttoref (long pal_id) throws HDFException |
| static native boolean | GRsetattr (long gr_id, String attr_name, long data_type, int count, String values) throws HDFException |
| static native boolean | GRsetattr (long gr_id, String attr_name, long data_type, int count, byte[] values) throws HDFException |
| static boolean | GRsetattr (long gr_id, String attr_name, long data_type, int count, Object theData) throws HDFException |
| static native boolean | GRsetchunk (long sdsid, HDFChunkInfo chunk_def, int flags) throws HDFException |
| static native int | GRsetchunkcache (long sdsid, int maxcache, int flags) throws HDFException |
| static native boolean | GRsetcompress (long ri_id, int comp_type, HDFCompInfo c_info) throws HDFException |
| static native boolean | GRgetcompress (long ri_id, HDFCompInfo c_info) throws HDFException |
| static native boolean | GRgetcompinfo (long ri_id, HDFCompInfo c_info) throws HDFException |
| static native boolean | GRsetexternalfile (long ri_id, String filename, int offset) throws HDFException |
| static native boolean | GRwriteimage (long grid, int[] start, int[] stride, int[] edge, byte[] data) throws HDFException |
| static boolean | GRwriteimage (long grid, int[] start, int[] stride, int[] edge, Object theData) throws HDFException |
| static native boolean | GRwritelut (long pal_id, int ncomp, int data_type, int interlace, int num_entries, byte[] pal_data) throws HDFException |
| static boolean | GRwritelut (long pal_id, int ncomp, int data_type, int interlace, int num_entries, Object theData) throws HDFException |
| static native boolean | GRreadchunk (long sdsid, int[] origin, byte[] theData) throws HDFException |
| static boolean | GRreadchunk (long grid, int[] origin, Object theData) throws HDFException |
| static native boolean | HDFclose (long file_id) throws HDFException |
| static native long | HDFopen (String filename, int access, short n_dds) throws HDFException |
| static native short | HEvalue (int level) throws HDFException |
| static native String | HEstring (int error_code) throws HDFException |
| static native void | HEprint (Object stream, int level) throws HDFException |
| static native boolean | HXsetcreatedir (String dir) throws HDFException |
| static native boolean | HXsetdir (String dir) throws HDFException |
| static native long | SDstart (String filename, int accessmode) throws HDFException |
| static native boolean | SDend (long sdid) throws HDFException |
| static native boolean | SDfileinfo (long sdid, int[] argv) throws HDFException |
| static native long | SDselect (long sdid, int index) throws HDFException |
| static native int | SDnametoindex (long sdid, String name) throws HDFException |
| static native boolean | SDgetinfo (long sdsid, String[] name, int[] dimsizes, int[] args) throws HDFException |
| static native boolean | SDcheckempty (long sdsid, int[] emptySDS) throws HDFException |
| static native boolean | SDreaddata (long sdsid, int[] start, int[] stride, int[] count, byte[] data) throws HDFException |
| static boolean | SDreaddata (long sdsid, int[] start, int[] stride, int[] count, Object theData) throws HDFException |
| static native boolean | SDreaddata_short (long sdsid, int[] start, int[] stride, int[] count, short[] theData) throws HDFException |
| static native boolean | SDreaddata_int (long sdsid, int[] start, int[] stride, int[] count, int[] theData) throws HDFException |
| static native boolean | SDreaddata_long (long sdsid, int[] start, int[] stride, int[] count, long[] theData) throws HDFException |
| static native boolean | SDreaddata_float (long sdsid, int[] start, int[] stride, int[] count, float[] theData) throws HDFException |
| static native boolean | SDreaddata_double (long sdsid, int[] start, int[] stride, int[] count, double[] theData) throws HDFException |
| static native boolean | SDendaccess (long sdsid) throws HDFException |
| static native long | SDgetdimid (long sdsid, int index) throws HDFException |
| static native boolean | SDdiminfo (long dimid, String[] name, int[] argv) throws HDFException |
| static native int | SDidtoref (long sdsid) throws HDFException |
| static native int | SDreftoindex (long sdid, int ref) throws HDFException |
| static native boolean | SDattrinfo (long id, int index, String[] name, int[] argv) throws HDFException |
| static native boolean | SDreadattr (long id, int index, byte[] data) throws HDFException |
| static boolean | SDreadattr (long id, int index, Object theData) throws HDFException |
| static native long | SDfindattr (long id, String name) throws HDFException |
| static native boolean | SDiscoordvar (long sdsid) throws HDFException |
| static native boolean | SDgetcal (long sdsid, double[] argv, int[] NT) throws HDFException |
| static native boolean | SDgetdatastrs (long sdsid, String[] strings, int len) throws HDFException |
| static native boolean | SDgetdimstrs (long dimid, String[] args, int len) throws HDFException |
| static native boolean | SDgetdimscale (long dimid, byte[] data) throws HDFException |
| static boolean | SDgetdimscale (long dimid, Object theData) throws HDFException |
| static native boolean | SDgetfillvalue (long sdsid, byte[] fillValue) throws HDFException |
| static boolean | SDgetfillvalue (long sdsid, Object[] theFillValue) throws HDFException |
| static native boolean | SDgetrange (long sdsid, byte[] max, byte[] min) throws HDFException |
| static boolean | SDgetrange (long sdsid, double maxmin[]) throws HDFException |
| static native long | SDcreate (long sd_id, String name, long number_type, int rank, int[] dimsizes) throws HDFException |
| static native boolean | SDisrecord (long sdsid) throws HDFException |
| static native boolean | SDsetattr (long s_id, String attr_name, long num_type, int count, byte[] values) throws HDFException |
| static boolean | SDsetattr (long s_id, String attr_name, long num_type, int count, Object theValues) throws HDFException |
| static native boolean | SDsetcal (long sds_id, double cal, double cal_err, double offset, double offset_err, int number_type) throws HDFException |
| static native boolean | SDsetdatastrs (long sds_id, String label, String unit, String format, String coordsys) throws HDFException |
| static native boolean | SDsetdimname (long dim_id, String dim_name) throws HDFException |
| static native boolean | SDsetdimscale (long dim_id, int count, int number_type, byte[] data) throws HDFException |
| static boolean | SDsetdimscale (long dim_id, int count, int number_type, Object theData) throws HDFException |
| static native boolean | SDsetdimstrs (long dim_id, String label, String unit, String format) throws HDFException |
| static native boolean | SDsetexternalfile (long sds_id, String filename, int offset) throws HDFException |
| static native boolean | SDsetfillvalue (long sds_id, byte[] fill_val) throws HDFException |
| static boolean | SDsetfillvalue (long sds_id, Object the_fill_val) throws HDFException |
| static native boolean | SDsetrange (long sdsid, byte[] max, byte[] min) throws HDFException |
| static boolean | SDsetrange (long sdsid, Object max, Object min) throws HDFException |
| static native boolean | SDwritedata (long sdsid, int[] start, int[] stride, int[] count, byte[] data) throws HDFException |
| static boolean | SDwritedata (long sdsid, int[] start, int[] stride, int[] count, Object theData) throws HDFException |
| static native boolean | SDsetnbitdataset (long id, int start_bit, int bit_len, int sign_ext, int fill_one) throws HDFException |
| static native boolean | SDsetcompress (long id, int type, HDFCompInfo cinfo) throws HDFException |
| static native boolean | SDgetcompinfo (long id, HDFCompInfo cinfo) throws HDFException |
| static native boolean | SDsetaccesstype (long id, int accesstype) throws HDFException |
| static native boolean | SDsetblocksize (long sdsid, int block_size) throws HDFException |
| static boolean | SDsetfillmode (long sdsid, boolean fill_enable) throws HDFException |
| static native boolean | SDsetfillmode (long sdsid, int fillmode) throws HDFException |
| static native boolean | SDsetdimval_comp (long dimid, int comp_mode) throws HDFException |
| static native boolean | SDisdimval_bwcomp (long dimid) throws HDFException |
| static native boolean | SDsetchunk (long sdsid, HDFChunkInfo chunk_def, int flags) throws HDFException |
| static native boolean | SDgetchunkinfo (long sdsid, HDFChunkInfo chunk_def, int[] clflags) throws HDFException |
| static native boolean | SDreadchunk (long sdsid, int[] origin, byte[] theData) throws HDFException |
| static boolean | SDreadchunk (long sdsid, int[] origin, Object theData) throws HDFException |
| static native int | SDsetchunkcache (long sdsid, int maxcache, int flags) throws HDFException |
| static native boolean | SDwritechunk (long sdsid, int[] origin, byte[] data) throws HDFException |
| static boolean | SDwritechunk (long sdsid, int[] origin, Object theData) throws HDFException |
| static native int | VFfieldesize (long vdata_id, int field_index) throws HDFException |
| static native int | VFfieldisize (long vdata_id, int field_index) throws HDFException |
| static native String | VFfieldname (long vdata_id, int field_index) throws HDFException |
| static native int | VFfieldorder (long vdata_id, int field_index) throws HDFException |
| static native long | VFfieldtype (long vdata_id, int field_index) throws HDFException |
| static native int | VFnfields (long vkey) throws HDFException |
| static native int | VHmakegroup (long file_id, int[] tag_array, int[] ref_array, int n_objects, String vgroup_name, String vgroup_class) throws HDFException |
| static native int | VHstoredata (long file_id, String fieldname, byte[] buf, int n_records, int data_type, String vdata_name, String vdata_class) throws HDFException |
| static int | VHstoredata (long file_id, String fieldname, Object thebuf, int n_records, int data_type, String vdata_name, String vdata_class) throws HDFException |
| static native int | VHstoredatam (long file_id, String fieldname, byte[] buf, int n_records, int data_type, String vdata_name, String vdata_class, int order) throws HDFException |
| static int | VHstoredatam (long file_id, String fieldname, Object buf, int n_records, int data_type, String vdata_name, String vdata_class, int order) throws HDFException |
| static native int | VQueryref (long vkey) throws HDFException |
| static native int | VQuerytag (long vkey) throws HDFException |
| static native boolean | Vstart (long fid) throws HDFException |
| static native int | Vattach (long fid, int vgroup_ref, String access) throws HDFException |
| static native void | Vdetach (long vgroup_id) throws HDFException |
| static native void | Vend (long file_id) throws HDFException |
| static native int | Vgetid (long file_id, int vgroup_ref) throws HDFException |
| static native void | Vgetclass (long vgroup_id, String[] hdfclassname) throws HDFException |
| static native void | Vgetname (long vgroup_id, String[] hdfname) throws HDFException |
| static native boolean | Visvg (long vgroup_id, int vgroup_ref) throws HDFException |
| static native boolean | Visvs (long vgroup_id, int vdata_ref) throws HDFException |
| static native int | Vgettagrefs (long vgroup_id, int[] tags, int[] refs, int arraysize) throws HDFException |
| static native boolean | Vgettagref (long vgroup_id, int index, int[] tagref) throws HDFException |
| static native int | Vntagrefs (long vgroup_id) throws HDFException |
| static native boolean | Vinqtagref (long vgroup_id, int tag, int ref) throws HDFException |
| static native int | Vlone (long fid, int[] ref_array, int buffersize) throws HDFException |
| static native int | Vaddtagref (long vgroup_id, int tag, int ref) throws HDFException |
| static native int | Vdeletetagref (long vgroup_id, int tag, int ref) throws HDFException |
| static native int | Vfind (long file_id, String vgroup_name) throws HDFException |
| static native int | Vfindclass (long file_id, String vgclassname) throws HDFException |
| static native int | Vflocate (int key, String vgclassname) throws HDFException |
| static native int | Vgetnext (int key, int ref) throws HDFException |
| static native boolean | Vinquire (long vgroup_id, int[] n_entries, String[] vgroup_name) throws HDFException |
| static native int | Vinsert (long vgroup_id, long v_id) throws HDFException |
| static native int | Vnrefs (int key, int ref) throws HDFException |
| static native boolean | Vsetclass (long vgroup_id, String vgclassname) throws HDFException |
| static native boolean | Vsetname (long vgroup_id, String vgname) throws HDFException |
| static native boolean | Vattrinfo (long id, int index, String[] name, int[] argv) throws HDFException |
| static native long | Vfindattr (long id, String name) throws HDFException |
| static native boolean | Vgetattr (long id, int index, byte[] data) throws HDFException |
| static boolean | Vgetattr (long id, int index, Object theData) throws HDFException |
| static native int | Vgetversion (long id) throws HDFException |
| static native int | Vnattrs (long id) throws HDFException |
| static native boolean | Vsetattr (long id, String attr_name, long data_type, int count, String values) throws HDFException |
| static native boolean | Vsetattr (long id, String attr_name, long data_type, int count, byte[] data) throws HDFException |
| static boolean | Vsetattr (long id, String attr_name, long data_type, int count, Object theData) throws HDFException |
| static native boolean | VSQuerycount (long vdata_id, int[] n_records) throws HDFException |
| static native boolean | VSQueryfields (long vdata_id, String[] fields) throws HDFException |
| static native boolean | VSQueryinterlace (long vdata_id, int[] interlace) throws HDFException |
| static native boolean | VSQueryname (long vdata_id, String[] vdata_name) throws HDFException |
| static native int | VSQueryref (long vdata_id) throws HDFException |
| static native int | VSQuerytag (long vdata_id) throws HDFException |
| static native boolean | VSQueryvsize (long vdata_id, int[] vdata_size) throws HDFException |
| static native int | VSattach (long fid, int vdata_ref, String access) throws HDFException |
| static native void | VSdetach (long vdata_id) throws HDFException |
| static native long | VSgetid (long file_id, int vdata_ref) throws HDFException |
| static native void | VSgetclass (long vdata_id, String[] hdfclassname) throws HDFException |
| static native void | VSgetname (long vdata_id, String[] hdfname) throws HDFException |
| static native int | VSelts (long vdata_id) throws HDFException |
| static native boolean | VSfdefine (long vdata_id, String fieldname, int numbertype, int order) throws HDFException |
| static native boolean | VSfexist (long vdata_id, String fields) throws HDFException |
| static native int | VSfind (long file_id, String vdataname) throws HDFException |
| static native int | VSsetblocksize (long vdata_id, int blocksize) throws HDFException |
| static native int | VSsetnumblocks (long vdata_id, int numblocks) throws HDFException |
| static native int | VSgetfields (long vdata_id, String[] fieldname) throws HDFException |
| static native int | VSgetinterlace (long vdata_id) throws HDFException |
| static native boolean | VSinquire (long vdata_id, int[] iargs, String[] sargs) throws HDFException |
| static native boolean | VSinquire (long vdata_id, int[] iargs) throws HDFException |
| static native int | VSlone (long fid, int[] ref_array, int buffersize) throws HDFException |
| static native int | VSread (long vdata_id, byte[] databuf, int nrecord, int interlace) throws HDFException |
| static int | VSread (long vdata_id, Object theData, int nrecord, int interlace) throws HDFException |
| static native int | VSseek (long vdata_id, int record) throws HDFException |
| static native boolean | VSsetfields (long vdata_id, String fields) throws HDFException |
| static native boolean | VSsetinterlace (long vdata_id, int interlace) throws HDFException |
| static native int | VSsizeof (long vdata_id, String fields) throws HDFException |
| static native boolean | VSappendable (int vkey, int block_size) throws HDFException |
| static native int | VSfindclass (long file_id, String vgclass) throws HDFException |
| static native int | VSgetversion (int vkey) throws HDFException |
| static native void | VSsetclass (long vdata_id, String vdata_class) throws HDFException |
| static native boolean | VSsetexternalfile (int vkey, String filename, int offset) throws HDFException |
| static native void | VSsetname (long vdata_id, String vdata_name) throws HDFException |
| static native int | VSwrite (long vdata_id, byte[] databuf, int n_records, int interlace) throws HDFException |
| static int | VSwrite (long vdata_id, Object databuf, int n_records, int interlace) throws HDFException |
| static native boolean | VSattrinfo (long id, int index, int attr_index, String[] name, int[] argv) throws HDFException |
| static native int | VSfindex (long id, String name, int[] findex) throws HDFException |
| static native int | VSfindattr (long id, int index, String name) throws HDFException |
| static native int | VSfnattrs (long id, int fnattrs) throws HDFException |
| static native boolean | VSgetattr (long id, int index, int attr_index, byte[] data) throws HDFException |
| static boolean | VSgetattr (long id, int index, int attr_index, Object theData) throws HDFException |
| static native boolean | VSisattr (long id) throws HDFException |
| static native int | VSnattrs (long id) throws HDFException |
| static native boolean | VSsetattr (long id, int index, String attr_name, long data_type, int count, String values) throws HDFException |
| static native boolean | VSsetattr (long id, int index, String attr_name, long data_type, int count, byte[] values) throws HDFException |
| static boolean | VSsetattr (long id, int index, String attr_name, long data_type, int count, Object theData) throws HDFException |
| static native boolean | DF24getdims (String fileName, int[] argv) throws HDFException |
| static native boolean | DF24reqil (int il) throws HDFException |
| static native boolean | DF24getimage (String fileName, byte[] imagedata, int width, int height) throws HDFException |
| static boolean | DF24getimage (String fileName, Object theImagedata, int width, int height) throws HDFException |
| static native short | DF24lastref () throws HDFException |
| static native boolean | DF24restart () throws HDFException |
| static native boolean | DF24readref (String filename, int ref) throws HDFException |
| static native int | DF24nimages (String fileName) throws HDFException |
| static native boolean | DF24addimage (String filename, byte[] image, int width, int height) throws HDFException |
| static boolean | DF24addimage (String filename, Object theImage, int width, int height) throws HDFException |
| static native boolean | DF24putimage (String filename, byte[] image, int width, int height) throws HDFException |
| static boolean | DF24putimage (String filename, Object theImage, int width, int height) throws HDFException |
| static native boolean | DF24setcompress (int type, HDFCompInfo cinfo) throws HDFException |
| static native boolean | DF24setdims (int width, int height) throws HDFException |
| static native boolean | DF24setil (int il) throws HDFException |
| static native boolean | DFR8getdims (String fileName, int[] argv, boolean[] haspalette) throws HDFException |
| static native boolean | DFR8getimage (String fileName, byte[] imagedata, int width, int height, byte[] palette) throws HDFException |
| static boolean | DFR8getimage (String fileName, Object theImagedata, int width, int height, byte[] palette) throws HDFException |
| static native short | DFR8lastref () throws HDFException |
| static native boolean | DFR8restart () throws HDFException |
| static native boolean | DFR8readref (String filename, int ref) throws HDFException |
| static native int | DFR8nimages (String fileName) throws HDFException |
| static native boolean | DFR8addimage (String filename, byte[] image, int width, int height, short compress) throws HDFException |
| static boolean | DFR8addimage (String filename, Object theImage, int width, int height, short compress) throws HDFException |
| static native boolean | DFR8putimage (String filename, byte[] image, int width, int height, short compress) throws HDFException |
| static boolean | DFR8putimage (String filename, Object theImage, int width, int height, short compress) throws HDFException |
| static native boolean | DFR8setcompress (int type, HDFCompInfo cinfo) throws HDFException |
| static native boolean | DFR8getpalref (short[] palref) throws HDFException |
| static native boolean | DFR8setpalette (byte[] palette) throws HDFException |
| static native boolean | DFR8writeref (String filename, short ref) throws HDFException |
| static native int | HCget_config_info (int coder_type) throws HDFException |
Static Public Attributes | |
| static final String | HDFPATH_PROPERTY_KEY = "hdf.hdflib.HDFLibrary.hdflib" |
| static final String | H4_LIBRARY_NAME_PROPERTY_KEY = "hdf.hdflib.HDFLibrary.loadLibraryName" |
|
static |
|
static |
| an_id | IN: the AN interface id, returned by ANstart |
| anntype | IN: the number type, as defined in HDFConstants |
| tag | IN: the HDF tag |
| ref | IN: the HDF ref |
| ann_list | OUT: int[], an array of annotation identifiers. The array must be long enough to hold the number of annotations returned by ANnumann |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| an_id | IN: the AN interface id, returned by ANstart |
| info | OUT: int[4], n_file_label, n_file_desc, n_data_label, n_data_desc |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
| an_id | IN: the AN interface id, returned by ANstart |
| index | IN: the index of the annotation |
| type | IN: the type of the annotation |
| tagref | OUT: short[2], the tag and ref of the annotation |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
| an_id | IN: the AN interface id, returned by ANstart |
| tagref | OUT: short[2], the tag and ref of the annotation |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
|
static |
| ann_id | IN: the AN interface id, returned by ANstart |
| annbuf | OUT: String[1], the annotation is returned as annbuf[0]. |
| maxlen | IN: int, the maximum length of the string. |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| filename | IN: String, the file |
| image | IN: byte[], the image, in an array of bytes |
| width | IN: int, the width of the image |
| height | IN: int, the height of the image |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to write from a Java array use the alternative routine below.
|
static |
| filename | IN: String, the file |
| theImage | IN: Object, the image, in a java array of appropriate size and type |
| width | IN: int, the width of the image |
| height | IN: int, the height of the image |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>Note:</b> converts the data into a contiguous array of bytes and then writes it
to the file
|
static |
| fileName | IN: String, the file |
| argv | OUT: int[3], the width, height, and interlace mode |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
| fileName | IN: String, the file |
| imagedata | OUT: byte[], the image, in an array of bytes |
| width | IN: int, the width of the image |
| height | IN: int, the height of the image |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to read into a Java array use the alternative routine below.
|
static |
| fileName | IN: String, the file |
| theImagedata | OUT: Object, the image, in a java array of appropriate size and type |
| width | IN: int, the width of the image |
| height | IN: int, the height of the image |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>Note:</b> reads the data as a contiguous array of bytes and then converts it to
an appropriate Java object.
|
static |
|
static |
|
static |
| filename | IN: String, the file |
| image | IN: byte[], the image, in an array of bytes |
| width | IN: int, the width of the image |
| height | IN: int, the height of the image |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to write from a Java array use the alternative routine below.
|
static |
| filename | IN: String, the file |
| theImage | IN: Object, the image, in a java array of appropriate size and type |
| width | IN: int, the width of the image |
| height | IN: int, the height of the image |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>Note:</b> converts the data into a contiguous array of bytes and then writes it
to the file
|
static |
|
static |
|
static |
|
static |
| type | IN: int, the type of compression |
| cinfo | IN: HDFCompInfo, the compression parameters |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| filename | IN: String, the name of the HDF file |
| palette | IN: byte[] the palette |
| overwrite | IN: boolean, converted to 1 == true, 0 == false to call the HDF library |
| filemode | IN: if "a" append palette to file, "w" create new file |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
|
static |
|
static |
|
static |
|
static |
| filename | IN: String, the file |
| image | IN: byte[], the image, in an array of bytes |
| width | IN: int, the width of the image |
| height | IN: int, the height of the image |
| compress | IN: short, the type of compression |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to write from a Java array use the alternative routine below.
|
static |
| filename | IN: String, the file |
| theImage | IN: Object, the image, in a java array of appropriate size and type |
| width | IN: int, the width of the image |
| height | IN: int, the height of the image |
| compress | IN: short, the type of compression |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>Note:</b> converts the data into a contiguous array of bytes and then writes it
to the file
|
static |
| fileName | IN: String, the file |
| argv | OUT: int[2], the width and height |
| haspalette | OUT: boolean[1], has a palette |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
| fileName | IN: String, the file |
| imagedata | OUT: byte[], the image, in an array of bytes |
| width | IN: int, the width of the image |
| height | IN: int, the height of the image |
| palette | OUT: byte[], the color look up table |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to read into a Java array use the alternative routine below.
|
static |
| fileName | IN: String, the file |
| theImagedata | OUT: Object, the image, in a java array of appropriate size and type |
| width | IN: int, the width of the image |
| height | IN: int, the height of the image |
| palette | OUT: byte[], the color look up table |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>Note:</b> reads the data as a contiguous array of bytes and then converts it to
an appropriate Java object.
|
static |
| palref | OUT: short[1], the HDF ref of the palette |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
|
static |
| filename | IN: String, the file |
| image | IN: byte[], the image, in an array of bytes |
| width | IN: int, the width of the image |
| height | IN: int, the height of the image |
| compress | IN: short, the type of compression |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to write from a Java array use the alternative routine below.
|
static |
| filename | IN: String, the file |
| theImage | IN: Object, the image, in a java array of appropriate size and type |
| width | IN: int, the width of the image |
| height | IN: int, the height of the image |
| compress | IN: short, the type of compression |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>Note:</b> converts the data into a contiguous array of bytes and then writes it
to the file
|
static |
|
static |
|
static |
DFR8setcompress sets compression scheme for 8-bit image
| type | IN: int, the type of compression |
| cinfo | IN: HDFCompInfo, the compression parameters |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
|
static |
|
static |
| id | IN: the GR identifier returned by GRstart |
| index | IN: the index of the attribute |
| name | OUT: String[1], the name of the attribute |
| argv | OUT: int[2], the type and length of the attribute |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
|
static |
|
static |
|
static |
| grid | IN: the GR interface id, returned by GRstart |
| args | OUT: int[2], n_datasets and n_file_attrs |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
|
static |
| id | IN: the GR identifier returned by GRstart |
| index | IN: index of the attribute for info |
| data | OUT: byte[], attribute data, in bytes |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>NOTE:</b> to read into a Java 1D array use the alternative routine below.
|
static |
| id | IN: the GR identifier returned by GRstart |
| index | IN: index of the attribute for info |
| theData | OUT: Object, attribute data, an Java array |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>Note:</b> reads the data as bytes and converts to the Java array.
|
static |
| sdsid | IN: the SD identifier returned by SDselect |
| chunk_def | OUT: HDFChunkInfo, the chunking info |
| flag | OUT: int[1], the type of chunking |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>NOTE:</b>The chunking algorithm-specific information is passed in an appropriate
sub-class of HDFChunkInfo.
|
static |
|
static |
|
static |
| grid | IN: the GR interface id, returned by GRstart |
| gr_name | OUT: name of raster image |
| args | OUT: int[4], image info: number of components in the image, data type of the image data, interlace mode of the stored image data, number of attributes assigned to the image |
| dim_sizes | OUT: int[2], dim_sizes |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE: the parameters for the Java interface are not in the same order as the C interface.
|
static |
|
static |
| lutid | IN: the palette identifier returned by GRgetlutid |
| args | OUT: int[4], palette info: Number of components in the palette, Data type of the palette data, Interlace mode of the stored palette data, Number of color lookup table entries in the palette. |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
|
static |
|
static |
|
static |
|
static |
| grid | IN: the GR interface id, returned by SDselect |
| origin | IN: int[], origin |
| theData | IN: Object, a Java array of appropriate type, dimensions, and size. |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
|
static |
| sdsid | IN: the GR interface id, returned by SDselect |
| origin | IN: int[], origin |
| theData | OUT: byte[], the data in an array of bytes |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE: to read into a Java array use the alternative routine below.
|
static |
| grid | IN: the GR interface id, returned by GRstart |
| start | IN: int[2], start |
| stride | IN: int[2], stride. If the stride parameter is set to NULL, a stride of 1 will be assumed. strides of 0 are illegal. |
| count | IN: int[2], count |
| data | OUT: byte[], data |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>NOTE:</b> to read into a Java 2D array use the alternative routine below.
|
static |
| grid | IN: the GR interface id, returned by GRstart |
| start | IN: int[2], start |
| stride | IN: int[2], stride. If the stride parameter is set to NULL, a stride of 1 will be assumed. strides of 0 are illegal. |
| count | IN: int[2], count |
| theData | OUT: Object, a Java array of appropriate type, dimensions, and size. |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>Note:</b> reads the data as bytes and converts to the Java array.
|
static |
| lutid | IN: the palette identifier returned by GRgetlutid |
| data | OUT: byte[], palette data, in bytes |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>NOTE:</b> to read into a Java 1D array use the alternative routine below.
|
static |
| lutid | IN: the palette identifier returned by GRgetlutid |
| theData | OUT: Object, palette data, an Java array |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>Note:</b> reads the data as bytes and converts to the Java array.
|
static |
|
static |
|
static |
|
static |
|
static |
| gr_id | IN: the GR identifier returned by GRstart |
| attr_name | IN: the name of the attribute |
| data_type | IN: the number type of the data |
| count | IN: the length the data (length of 'values') |
| values | IN: the the attribute to write – in an array of bytes |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE:This routine writes the attribute as an array of bytes. DO NOT USE THIS TO WRITE A STRING. This is intended for numeric data that has been flattened into bytes.
|
static |
| gr_id | IN: the GR identifier returned by GRstart |
| attr_name | IN: the name of the attribute |
| data_type | IN: the number type of the data |
| count | IN: the length the data (length of 'values') |
| theData | IN: Object – the value to be written, a Java array of numbers. |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE:This routine converts the Java array to bytes then writes it. DO NOT USE THIS TO WRITE A STRING.
|
static |
| gr_id | IN: the GR identifier returned by GRstart |
| attr_name | IN: the name of the attribute |
| data_type | IN: the number type of the data (should be DFNT_CHAR) |
| count | IN: the length the data (length of 'values') |
| values | IN: the the attribute to write – A String |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE:This routine writes a attribute that is a String. Alternative methods write data of other types.
|
static |
| sdsid | IN: the SD identifier returned by SDselect |
| chunk_def | IN: HDFChunkInfo, the chunking info |
| flags | IN: the type of chunking |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE:The chunking algorithm-specific information is passed in an appropriate sub-class of HDFChunkInfo.
|
static |
|
static |
| ri_id | IN: the GR identifier returned by GRstart |
| comp_type | IN: the type of compression |
| c_info | IN: HDFCompInfo, the compression info |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE:The compression algorithm specific information is passed in an appropriate sub-class of HDFCompInfo.
|
static |
|
static |
|
static |
| grid | IN: the GR interface id, returned by GRstart |
| start | IN: int[2], start |
| stride | IN: int[2], stride. If the stride parameter is set to NULL, a stride of 1 will be assumed. strides of 0 are illegal. |
| edge | IN: int[2], count |
| data | IN: byte[], data to be written |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE: to write from a Java 2D array use the alternative routine below.
|
static |
| grid | IN: the GR interface id, returned by GRstart |
| start | IN: int[2], start |
| stride | IN: int[2], stride. If the stride parameter is set to NULL, a stride of 1 will be assumed. strides of 0 are illegal. |
| edge | IN: int[2], count |
| theData | IN: Object, a Java array of appropriate type, dimensions, and size. |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: converts the Java array to a contiguous block of bytes appropriate for C, and then writes the bytes.
|
static |
| pal_id | IN: the palette identifier returned by GRgetlutid |
| ncomp | IN: int, number of components |
| data_type | IN: int, number type |
| interlace | IN: int, interlace |
| num_entries | IN: int, number of entries |
| pal_data | IN: byte[], palette data to be written–as bytes |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>NOTE:</b> to write from a Java array of numbers use the alternative routine
below.
|
static |
| pal_id | IN: the palette identifier returned by GRgetlutid |
| ncomp | IN: int, number of components |
| data_type | IN: int, number type |
| interlace | IN: int, interlace |
| num_entries | IN: int, number of entries |
| theData | IN: Object, palette data to be written, any number type. |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>Note:</b> converts the Java array to a contiguous block of bytes appropriate
for C, and then writes the bytes.
|
static |
|
static |
New API for hdf-42r1
| coder_type | comp_coder_t enum for determining which type of encoding is being done |
| hdf.hdflib.HDFException | thrown for errors in the HDF library call. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Note: the version of an HDF file is not well defined, it is not recommended that programs rely on these numbers.
| file_id | IN: long, the file descriptor returned by Hopen |
| vers | OUT: int[3], the major version, minor version, and release number of the file. |
| string | OUT: String[1], the version string |
| hdf.hdflib.HDFException | thrown for errors in the HDF library call. |
|
static |
| vers | OUT: int[3], the major version, minor version, and release number of the HDF library. |
| string | OUT: String[1], the version string |
| hdf.hdflib.HDFException | thrown for errors in the HDF library call. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| id | IN: id of a file, SDS, or dimension |
| index | IN: index of the attribute |
| name | OUT: String[1], the name of the attribute |
| argv | OUT: int[2], number type of the attribute, number of values in the attribute |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
| sdsid | IN: the SD interface id, returned by SDselect |
| emptySDS | OUT: int[1], 1 if the SDS is empty, 0 if has data |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
|
static |
| dimid | IN: the dimension id, returned by SDgetdimid |
| name | OUT: String[1], the dimension name |
| argv | OUT: int[3], size of the name string, number type of data in the array, # attributes for the dimension |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
|
static |
|
static |
| sdid | IN: the SD interface id, returned by SDstart |
| argv | OUT: int[2], Number of datasets in the file, Number of global attributes in the file |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
|
static |
| sdsid | IN: id of the SDS as returned by SDselect |
| argv | OUT: double[4], calibration information: calibration factor calibration error offset offset error |
| NT | OUT: int[1], number type of uncalibrated data |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
| sdsid | IN: the SD identifier returned by SDselect |
| chunk_def | OUT: HDFChunkInfo, the chunking info |
| clflags | OUT: int[1], the type of chunking |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>NOTE:</b>The chunking algorithm-specific information is passed in an appropriate
sub-class of HDFChunkInfo.
|
static |
| id | IN: the SD identifier returned by SDselect |
| cinfo | IN: HDFCompInfo, the compression info |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE:The compression algorithm specific information is passed in an appropriate sub-class of HDFCompInfo.
|
static |
| sdsid | IN: id of the SDS as returned by SDselect |
| strings | OUT: String[4], data information strings: label unit print format coordinate system |
| len | IN: int, max len of string (not needed by Java – the HDFLibrary interface will handle this) |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
|
static |
| dimid | IN: id of a dimension as returned by SDgetdimid |
| data | OUT: byte[], data |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>NOTE:</b> to read into a Java array use the alternative routine below.
|
static |
| dimid | IN: id of a dimension as returned by SDgetdimid |
| theData | OUT: Object, a Java array of appropriate type and size. |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>Note:</b> reads the data as bytes and converts to the Java array.
|
static |
| dimid | IN: id of the SDS as returned by SDselect |
| args | OUT: String[3], data information strings: label unit print format |
| len | IN: int, max len of string (not needed by Java – the HDFLibrary interface will handle this) |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
| sdsid | IN: id of the SDS as returned by SDselect |
| fillValue | OUT: byte[], data |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>NOTE:</b> to read into a Java variable use the alternative routine below.
|
static |
| sdsid | IN: id of the SDS as returned by SDselect |
| theFillValue | OUT: Object[1], one object of appropriate type |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>Note:</b> the routine calls SDgetinfo to determine the correct type, reads the data as
bytes, and converts to the appropriate Java object.
|
static |
| sdsid | IN: the SD interface id, returned by SDselect |
| name | OUT: String[1], the name of the dataset |
| args | OUT: int[3], dataset info: number of dimensions (rank), data type for the data stored in the dataset, number of "netCDF-style" attributes for this dataset |
| dimsizes | OUT: int[(rank)], sizes of dimensions |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE: the parameters for the Java interface are not in the same order as the C interface.
|
static |
| sdsid | IN: id of the SDS as returned by SDselect |
| max | OUT: byte[], max value, as bytes |
| min | OUT: byte[], min value, as bytes |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>NOTE:</b> to read into Java doubles, use the alternative routine below.
|
static |
| sdsid | IN: id of the SDS as returned by SDselect |
| maxmin | OUT: double[2], the max and min values converted to doubles |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>Note:</b> the routine calls SDgetinfo to determine the correct type, reads the data as
bytes, and converts to the double.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| id | IN: id of a file, SDS, or dimension |
| index | IN: index of the attribute |
| data | OUT: byte[], data |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>NOTE:</b> to read into a Java array use the alternative routine below.
|
static |
| id | IN: id of a file, SDS, or dimension |
| index | IN: index of the attribute |
| theData | OUT: Object, a Java array of appropriate type, dimensions, and size. |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>Note:</b> reads the data as bytes and converts to the Java array.
|
static |
| sdsid | IN: the SD interface id, returned by SDselect |
| origin | IN: int[], origin |
| theData | OUT: byte[], the data in an array of bytes |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE: to read into a Java array use the alternative routine below.
|
static |
| sdsid | IN: the SD interface id, returned by SDselect |
| origin | IN: int[], origin |
| theData | IN: Object, a Java array of appropriate type, dimensions, and size. |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
|
static |
| sdsid | IN: the SD interface id, returned by SDselect |
| start | IN: int[], start |
| stride | IN: int[], stride |
| count | IN: int[], count |
| data | OUT: byte[], data |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>NOTE:</b> to read into a Java array use the alternative routine below.
|
static |
| sdsid | IN: the SD interface id, returned by SDselect |
| start | IN: int[], start |
| stride | IN: int[], stride |
| count | IN: int[], count |
| theData | OUT: Object, a Java array of appropriate type, dimensions, and size. |
| hdf.hdflib.HDFException | should be thrown for errors. |
<p>
<b>Note:</b> reads the data as bytes and converts to the Java array.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| sdsid | IN: the SD identifier returned by SDselect |
| chunk_def | IN: HDFChunkInfo, the chunking info |
| flags | IN: the type of chunking |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE:The chunking algorithm-specific information is passed in an appropriate sub-class of HDFChunkInfo.
|
static |
|
static |
| id | IN: the SD identifier returned by SDselect |
| type | IN: the type of compression |
| cinfo | IN: HDFCompInfo, the compression info |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE:The compression algorithm specific information is passed in an appropriate sub-class of HDFCompInfo.
|
static |
|
static |
|
static |
| dim_id | IN: id of a dimension |
| count | IN: number of values |
| number_type | IN: number type of the values |
| data | IN: byte[], the values, in an array of bytes. |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: the calling program must assure that the data is correctly formatted for C. To write an array of Java objects, use the alternative routine below.
|
static |
| dim_id | IN: id of a dimension |
| count | IN: number of values |
| number_type | IN: number type of the values |
| theData | OUT: Object, a Java array of appropriate type and size. |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: converts the Java array to an array of bytes, and writes the bytes.
|
static |
|
static |
|
static |
|
static |
| sdsid | IN: the SD id |
| fill_enable | IN: boolean, true calls library with SD_FILL, false calls library with SD_NOFILL |
| hdf.hdflib.HDFException | should be thrown for errors. |
|
static |
|
static |
| sds_id | IN: id of a dataset |
| fill_val | IN: byte[], the fill values in an array of bytes. |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: the calling program must assure that the data is correctly formatted for C. To set the fill value with a Java object, use the alternative routine below.
|
static |
| sds_id | IN: id of a dataset |
| the_fill_val | IN: Object, a Java object of appropriate type |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: converts the Java array to an array of bytes, and writes the bytes.
|
static |
|
static |
| sdsid | IN: id of a dataset |
| max | IN: byte[], the max value in an array of bytes |
| min | IN: byte[], the min value in an array of bytes |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: the calling program must assure that the data is correctly formatted for C. To set the max and min value with Java objects, use the alternative routine below.
|
static |
| sdsid | IN: id of a dataset |
| max | IN: Object, a Java object of appropriate type |
| min | IN: Object, a Java object of appropriate type |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: converts the Java array to an array of bytes, and writes the bytes.
|
static |
|
static |
| sdsid | IN: the SD interface id, returned by SDselect |
| origin | IN: int[], origin |
| data | IN: byte[], data to be written, in an array of bytes |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE: to write from a Java array use the alternative routine below.
|
static |
| sdsid | IN: the SD interface id, returned by SDselect |
| origin | IN: int[], origin |
| theData | IN: Object, a Java array of appropriate type, dimensions, and size. |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: converts to the Java array to a contiguous array of bytes and then writes to the file.
|
static |
| sdsid | IN: the SD interface id, returned by SDselect |
| start | IN: int[], start |
| stride | IN: int[], stride |
| count | IN: int[], count |
| data | IN: byte[], data in an array of bytes |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE: to write from a Java array use the alternative routine below.
|
static |
| sdsid | IN: the SD interface id, returned by SDselect |
| start | IN: int[], start |
| stride | IN: int[], stride |
| count | IN: int[], count |
| theData | IN: Object, a Java array of appropriate type, dimensions, and size. |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: converts to the Java array to a contiguous array of bytes and then writes to the file.
|
static |
|
static |
|
static |
| id | IN: Vgroup identifier returned by Vattach |
| index | IN: the index of the attribute |
| name | OUT: String[1], the name of the attribute |
| argv | OUT: int[5], Data type of the target attribute, Number of values in the target attribute, Size, in bytes, of the values of the target attribute, , |
| hdf.hdflib.HDFException | thrown for errors in the HDF library call. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| id | IN: the Vdata id |
| index | IN: the index of the attribute |
| data | OUT: byte[], the data in an array of bytes |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to read into a Java array use the alternative routine below.
|
static |
| id | IN: the Vdata id |
| index | IN: the index of the attribute |
| theData | OUT: Object, a Java array of appropriate type, dimensions, and size. |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>Note:</b> reads the data as a contiguous array of bytes and then converts it to
an appropriate Java object.
|
static |
| vgroup_id | IN: the Vgroup id |
| hdfclassname | OUT: String[1], the HDF class of the vgroup. |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
| vgroup_id | IN: the Vgroup id |
| hdfname | OUT: String[1], the name of the vgroup. |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
| vgroup_id |
|
| index |
|
| tagref |
|
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
| vgroup_id | IN: the Vgroup id |
| tags | OUT: int[arraysize], the tags |
| refs | OUT: int[arraysize], the refs |
| arraysize | IN: int, the number of tags/refs to return |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
|
static |
| file_id | IN: the SD interface id, returned by SDselect |
| fieldname | IN: String, the name of the field to be filled |
| buf | IN: byte[], data to be written, in an array of bytes |
| n_records | IN: int, the number of records being written |
| data_type | IN: int, the number type of the data |
| vdata_name | IN: String, the name of the Vdata |
| vdata_class | IN: String, the class of the Vdata |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE: to write from a Java array use the alternative routine below.
|
static |
| file_id | IN: the SD interface id, returned by SDselect |
| fieldname | IN: String, the name of the field to be filled |
| thebuf | IN: Object, data to be written, in a Java array of appropriate type and size |
| n_records | IN: int, the number of records being written |
| data_type | IN: int, the number type of the data |
| vdata_name | IN: String, the name of the Vdata |
| vdata_class | IN: String, the class of the Vdata |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: converts to the Java array to a contiguous array of bytes and then writes to the file.
|
static |
| file_id | IN: the SD interface id, returned by SDselect |
| fieldname | IN: String, the name of the field to be filled |
| buf | IN: byte[], data to be written, in an array of bytes |
| n_records | IN: int, the number of records being written |
| data_type | IN: int, the number type of the data |
| vdata_name | IN: String, the name of the Vdata |
| vdata_class | IN: String, the class of the Vdata |
| order | IN: int, the number of components per field |
| hdf.hdflib.HDFException | should be thrown for errors. |
NOTE: to write from a Java array use the alternative routine below.
|
static |
| file_id | IN: the SD interface id, returned by SDselect |
| fieldname | IN: String, the name of the field to be filled |
| buf | IN: Object, data to be written, in a Java array of appropriate type, dimension, and size |
| n_records | IN: int, the number of records being written |
| data_type | IN: int, the number type of the data |
| vdata_name | IN: String, the name of the Vdata |
| vdata_class | IN: String, the class of the Vdata |
| order | IN: int, the number of components per field |
| hdf.hdflib.HDFException | should be thrown for errors. |
Note: converts to the Java array to a contiguous array of bytes and then writes to the file.
|
static |
|
static |
| vgroup_id | IN: the Vgroup id |
| n_entries | OUT: int[1], the number of objects in the Vgroup |
| vgroup_name | OUT: String[1], the name of the Vgroup |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
|
static |
|
static |
| fid | IN: the file identifier returned by Hopen |
| ref_array | OUT: int[], the refs for Vdata not part of Vgroups |
| buffersize | IN: the max size of the ref_array |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| id | IN: the Vdata id |
| index | IN: int, the index of the attribute |
| attr_index | IN: int, the index of the attribute |
| name | OUT: String[1], the name of the attribute |
| argv | OUT: int[3], Data type of the target attribute, Number of values in the target attribute, Size, in bytes, of the values of the target attribute, |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
|
static |
| id | IN: the Vdata id |
| attr_name | IN: String, the name of the attribute |
| data_type | IN: int, the number_type of the attribute |
| count | IN: the number of values |
| data | IN: byte[], the data in an array of bytes |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to write into a Java array use the alternative routine below.
|
static |
| id | IN: the Vdata id |
| attr_name | IN: String, the name of the attribute |
| data_type | IN: int, the number_type of the attribute |
| count | IN: the number of values |
| theData | IN: Object, a Java array of appropriate type, dimensions, and size. |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>Note:</b> converts the data to a contiguous array of bytes and then converts
writes it.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| id | IN: the Vdata id |
| name | IN: the name of the attribute |
| findex | IN: int[1], the index of the attribute |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
| id | IN: the Vdata id |
| index | IN: the index of the vdata |
| attr_index | IN: the index of the attribute |
| data | OUT: byte[], the data in an array of bytes |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to read into a Java array use the alternative routine below.
|
static |
| id | IN: the Vdata id |
| index | IN: the index of the vdata |
| attr_index | IN: the index of the attribute |
| theData | OUT: Object, a Java array of appropriate type, dimensions, and size. |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>Note:</b> reads the data as a contiguous array of bytes and then converts it to
an appropriate Java object.
|
static |
| vdata_id | IN, vdata id as returned by VSattach |
| hdfclassname | OUT, String[1], the class name of the vdata |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
| vdata_id | IN, vdata id as returned by VSattach |
| fieldname | OUT, String[1], the names of the fields |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
|
static |
| vdata_id | IN, vdata id as returned by VSattach |
| hdfname | OUT, String[1], the name of the vdata |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
| vdata_id | IN, vdata id as returned by VSattach |
| iargs | OUT, int[2], block_size, num_blocks |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> the parameters for the Java interface are not in the same order as the C
interface.
|
static |
| vdata_id | IN, vdata id as returned by VSattach |
| iargs | OUT, int[3], n_records, interlace, vdata_size |
| sargs | OUT, String[2], names the dataset, fields |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
NOTE: the parameters for the Java interface are not in the same order as the C interface.
|
static |
|
static |
| fid | IN, File identifier returned by Hopen |
| ref_array | OUT, int[?], the refs |
| buffersize | IN, int, the max number of refs to return. |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
| vdata_id | IN, vdata id as returned by VSattach |
| n_records | OUT, int[1], the number of records in the vdata |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
| vdata_id | IN, vdata id as returned by VSattach |
| fields | OUT, String[1], the names of the fields |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
| vdata_id | IN, vdata id as returned by VSattach |
| interlace | OUT, int[1], the interlace mode, |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
| vdata_id | IN, vdata id as returned by VSattach |
| vdata_name | OUT, String[1], the name of the vdata |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
|
static |
|
static |
| vdata_id | IN, vdata id as returned by VSattach |
| vdata_size | OUT, int[1], the size of the vdata |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
|
static |
| vdata_id | IN: the Vdata id |
| databuf | OUT: byte[], the data in an array of bytes |
| nrecord | IN: int, number of records |
| interlace | IN: int, interlace |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to read into a Java array use the alternative routine below.
|
static |
| vdata_id | IN: the Vdata id |
| theData | OUT: Object, a Java array of appropriate type, dimensions, and size. |
| nrecord | IN: int, number of records |
| interlace | IN: int, interlace |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>Note:</b> reads the data as a contiguous array of bytes and then converts it to
an appropriate Java object.
|
static |
|
static |
| id | IN: the Vdata id |
| index | IN: the index of the vdata |
| attr_name | IN: String, the name of the attribute |
| data_type | IN: int, the number_type of the attribute |
| count | IN: the number of values |
| values | IN: byte[], the data in an array of bytes |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to write into a Java array use the alternative routine below.
|
static |
| id | IN: the Vdata id |
| index | IN: the index of the vdata |
| attr_name | IN: String, the name of the attribute |
| data_type | IN: int, the number_type of the attribute |
| count | IN: the number of values |
| theData | IN: Object, a Java array of appropriate type, dimensions, and size. |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>Note:</b> converts the data to a contiguous array of bytes and then converts
writes it.
|
static |
| id | IN: the Vdata id |
| index | IN: the index of the vdata |
| attr_name | IN: String, the name of the attribute |
| data_type | IN: int, the number_type of the attribute |
| count | IN: the number of values |
| values | IN: String, the data in an String |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to write from a Java array use the alternative routine below.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| vdata_id | IN: the Vdata id |
| databuf | IN: byte[], the data in an array of bytes |
| n_records | IN: int, number of records |
| interlace | IN: int, interlace |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>NOTE:</b> to write a Java array use the alternative routine below.
|
static |
| vdata_id | IN: the Vdata id |
| databuf | IN: Object, a Java array of appropriate type, dimensions, and size. |
| n_records | IN: int, number of records |
| interlace | IN: int, interlace |
| hdf.hdflib.HDFException | should be thrown for errors in the HDF library call. |
<p>
<b>Important Note:</b> This interface only supports records which are all of the
same numeric type, with no character fields. Heterogeneous fields can be written
as bytes (see above), but the calling program must make sure the data is in proper
order to write to the HDF library.
<p>
<b>Note:</b> converts the data into a contiguous array of bytes and then writes it
|
static |
|
static |