hdf4_java_doc/ 0000755 0047637 0001133 00000000000 13124536772 012533 5 ustar bljones hdf hdf4_java_doc/allclasses-frame.html 0000744 0047637 0001133 00000006007 13124113064 016624 0 ustar bljones hdf
Modifier and Type | Constant Field | Value |
---|---|---|
public static final int |
AN_DATA_DESC |
1 |
public static final int |
AN_DATA_LABEL |
0 |
public static final int |
AN_FILE_DESC |
3 |
public static final int |
AN_FILE_LABEL |
2 |
public static final java.lang.String |
ANNOTATION |
"HDF_ANNOTATION" |
public static final java.lang.String |
CHAR16 |
"CHAR16" |
public static final java.lang.String |
CHAR8 |
"CHAR8" |
public static final int |
COMP_CODE_DEFLATE |
4 |
public static final int |
COMP_CODE_INVALID |
6 |
public static final int |
COMP_CODE_JPEG |
7 |
public static final int |
COMP_CODE_NBIT |
2 |
public static final int |
COMP_CODE_NONE |
0 |
public static final int |
COMP_CODE_RLE |
1 |
public static final int |
COMP_CODE_SKPHUFF |
3 |
public static final int |
COMP_CODE_SZIP |
5 |
public static final int |
COMP_IMCOMP |
12 |
public static final int |
COMP_JPEG |
2 |
public static final int |
COMP_NONE |
0 |
public static final int |
COMP_RLE |
11 |
public static final int |
DF_FORWARD |
1 |
public static final int |
DFACC_CREATE |
4 |
public static final int |
DFACC_DEFAULT |
0 |
public static final int |
DFACC_PARALLEL |
9 |
public static final int |
DFACC_RDONLY |
1 |
public static final int |
DFACC_RDWR |
3 |
public static final int |
DFACC_READ |
1 |
public static final int |
DFACC_SERIAL |
1 |
public static final int |
DFACC_WRITE |
2 |
public static final int |
DFIL_LINE |
1 |
public static final int |
DFIL_PIXEL |
0 |
public static final int |
DFIL_PLANE |
2 |
public static final int |
DFNT_CHAR |
4 |
public static final int |
DFNT_CHAR16 |
42 |
public static final int |
DFNT_CHAR8 |
4 |
public static final int |
DFNT_CUSTOM |
8192 |
public static final int |
DFNT_DOUBLE |
6 |
public static final int |
DFNT_FLOAT |
5 |
public static final int |
DFNT_FLOAT128 |
7 |
public static final int |
DFNT_FLOAT32 |
5 |
public static final int |
DFNT_FLOAT64 |
6 |
public static final int |
DFNT_HDF |
0 |
public static final int |
DFNT_INT128 |
28 |
public static final int |
DFNT_INT16 |
22 |
public static final int |
DFNT_INT32 |
24 |
public static final int |
DFNT_INT64 |
26 |
public static final int |
DFNT_INT8 |
20 |
public static final int |
DFNT_LITEND |
16384 |
public static final int |
DFNT_MASK |
4095 |
public static final int |
DFNT_NATIVE |
4096 |
public static final int |
DFNT_UCHAR |
3 |
public static final int |
DFNT_UCHAR16 |
43 |
public static final int |
DFNT_UCHAR8 |
3 |
public static final int |
DFNT_UINT128 |
30 |
public static final int |
DFNT_UINT16 |
23 |
public static final int |
DFNT_UINT32 |
25 |
public static final int |
DFNT_UINT64 |
27 |
public static final int |
DFNT_UINT8 |
21 |
public static final int |
DFREF_NONE |
0 |
public static final int |
DFREF_WILDCARD |
0 |
public static final int |
DFS_MAXLEN |
255 |
public static final int |
DFTAG_AR |
312 |
public static final int |
DFTAG_BREQ |
799 |
public static final int |
DFTAG_CAL |
731 |
public static final int |
DFTAG_CCN |
310 |
public static final int |
DFTAG_CFM |
311 |
public static final int |
DFTAG_CHUNK |
61 |
public static final int |
DFTAG_CHUNKED |
60 |
public static final int |
DFTAG_CI |
303 |
public static final int |
DFTAG_CI8 |
203 |
public static final int |
DFTAG_COMPRESSED |
40 |
public static final int |
DFTAG_DIA |
105 |
public static final int |
DFTAG_DIL |
104 |
public static final int |
DFTAG_DRAW |
400 |
public static final int |
DFTAG_EREQ |
780 |
public static final int |
DFTAG_FD |
101 |
public static final int |
DFTAG_FID |
100 |
public static final int |
DFTAG_FREE |
108 |
public static final int |
DFTAG_FV |
732 |
public static final int |
DFTAG_GREYJPEG |
14 |
public static final int |
DFTAG_GREYJPEG5 |
16 |
public static final int |
DFTAG_ID |
300 |
public static final int |
DFTAG_ID8 |
200 |
public static final int |
DFTAG_II8 |
204 |
public static final int |
DFTAG_IMC |
12 |
public static final int |
DFTAG_IMCOMP |
12 |
public static final int |
DFTAG_IP8 |
201 |
public static final int |
DFTAG_JPEG |
13 |
public static final int |
DFTAG_JPEG5 |
15 |
public static final int |
DFTAG_LD |
307 |
public static final int |
DFTAG_LINKED |
20 |
public static final int |
DFTAG_LUT |
301 |
public static final int |
DFTAG_MA |
309 |
public static final int |
DFTAG_MD |
308 |
public static final int |
DFTAG_MT |
107 |
public static final int |
DFTAG_MTO |
501 |
public static final int |
DFTAG_NDG |
720 |
public static final int |
DFTAG_NRI |
304 |
public static final int |
DFTAG_NT |
106 |
public static final int |
DFTAG_NULL |
1 |
public static final int |
DFTAG_RI |
302 |
public static final int |
DFTAG_RI8 |
202 |
public static final int |
DFTAG_RIG |
306 |
public static final int |
DFTAG_RLE |
11 |
public static final int |
DFTAG_RUN |
401 |
public static final int |
DFTAG_SD |
702 |
public static final int |
DFTAG_SDC |
708 |
public static final int |
DFTAG_SDD |
701 |
public static final int |
DFTAG_SDF |
706 |
public static final int |
DFTAG_SDG |
700 |
public static final int |
DFTAG_SDL |
704 |
public static final int |
DFTAG_SDLNK |
710 |
public static final int |
DFTAG_SDM |
707 |
public static final int |
DFTAG_SDRAG |
781 |
public static final int |
DFTAG_SDS |
703 |
public static final int |
DFTAG_SDT |
709 |
public static final int |
DFTAG_SDU |
705 |
public static final int |
DFTAG_T105 |
603 |
public static final int |
DFTAG_T14 |
602 |
public static final int |
DFTAG_TD |
103 |
public static final int |
DFTAG_TID |
102 |
public static final int |
DFTAG_VERSION |
30 |
public static final int |
DFTAG_VG |
1965 |
public static final int |
DFTAG_VH |
1962 |
public static final int |
DFTAG_VLINKED |
50 |
public static final int |
DFTAG_VLINKED_DATA |
51 |
public static final int |
DFTAG_VS |
1963 |
public static final int |
DFTAG_WILDCARD |
0 |
public static final int |
DFTAG_XYP |
500 |
public static final java.lang.String |
DIM_VALS |
"DimVal0.0" |
public static final java.lang.String |
DIM_VALS01 |
"DimVal0.1" |
public static final int |
FAIL |
-1 |
public static final java.lang.String |
FLOAT128 |
"FLOAT128" |
public static final java.lang.String |
FLOAT32 |
"FLOAT32" |
public static final java.lang.String |
FLOAT64 |
"FLOAT64" |
public static final int |
FULL_INTERLACE |
0 |
public static final java.lang.String |
GR |
"HDF_GR" |
public static final java.lang.String |
GR_NAME |
"RIG0.0" |
public static final java.lang.String |
HDF_ATTRIBUTE |
"Attr0.0" |
public static final java.lang.String |
HDF_CDF |
"CDF0.0" |
public static final java.lang.String |
HDF_CHK_TBL |
"_HDF_CHK_TBL_" |
public static final int |
HDF_CHUNK |
1 |
public static final int |
HDF_COMP |
3 |
public static final java.lang.String |
HDF_CRDVAR |
"CoordVar" |
public static final java.lang.String |
HDF_DIMENSION |
"Dim0.0" |
public static final int |
HDF_NBIT |
5 |
public static final int |
HDF_NONE |
0 |
public static final java.lang.String |
HDF_SDSVAR |
"SDSVar" |
public static final java.lang.String |
HDF_UDIMENSION |
"UDim0.0" |
public static final java.lang.String |
HDF_VARIABLE |
"Var0.0" |
public static final java.lang.String |
INT128 |
"INT128" |
public static final java.lang.String |
INT16 |
"INT16" |
public static final java.lang.String |
INT32 |
"INT32" |
public static final java.lang.String |
INT64 |
"INT64" |
public static final java.lang.String |
INT8 |
"INT8" |
public static final int |
MAX_VAR_DIMS |
32 |
public static final int |
MFGR_INTERLACE_COMPONENT |
2 |
public static final int |
MFGR_INTERLACE_LINE |
1 |
public static final int |
MFGR_INTERLACE_PIXEL |
0 |
public static final int |
NO_INTERLACE |
1 |
public static final java.lang.String |
RI_NAME |
"RI0.0" |
public static final java.lang.String |
RI24 |
"HDF_RI24" |
public static final java.lang.String |
RI8 |
"HDF_RI8" |
public static final java.lang.String |
RIGATTRCLASS |
"RIATTR0.0C" |
public static final java.lang.String |
RIGATTRNAME |
"RIATTR0.0N" |
public static final int |
SD_DIMVAL_BW_COMP |
1 |
public static final int |
SD_DIMVAL_BW_INCOMP |
0 |
public static final int |
SD_FILL |
0 |
public static final int |
SD_NOFILL |
256 |
public static final int |
SD_UNLIMITED |
0 |
public static final java.lang.String |
SDS |
"HDF_SDS" |
public static final java.lang.String |
UCHAR16 |
"UCHAR16" |
public static final java.lang.String |
UCHAR8 |
"UCHAR8" |
public static final java.lang.String |
UINT128 |
"UINT128" |
public static final java.lang.String |
UINT16 |
"UINT16" |
public static final java.lang.String |
UINT32 |
"UINT32" |
public static final java.lang.String |
UINT64 |
"UINT64" |
public static final java.lang.String |
UINT8 |
"UINT8" |
public static final java.lang.String |
VDATA |
"HDF_VDATA" |
public static final java.lang.String |
VGROUP |
"HDF_GROUP" |
Modifier and Type | Constant Field | Value |
---|---|---|
public static final java.lang.String |
HDFExceptionMessage |
"ERROR: HDF Library Error" |
public static final java.lang.String |
HDFMessage |
"ERROR: Unknown HDF Error" |
public static final java.lang.String |
OutOfMemoryMessage |
"ERROR: HDF Library: Out of memory" |
Modifier and Type | Constant Field | Value |
---|---|---|
public static final java.lang.String |
H4_LIBRARY_NAME_PROPERTY_KEY |
"hdf.hdflib.HDFLibrary.loadLibraryName" |
public static final java.lang.String |
HDFPATH_PROPERTY_KEY |
"hdf.hdflib.HDFLibrary.hdflib" |
Method and Description |
---|
hdf.hdflib.HDFLibrary.getJHIVersion() |
hdf.hdflib.HDFLibrary.SDgetcompinfo(long, HDFCompInfo)
As of HDF 4.2.9, replaced by
HDFLibrary.SDgetcompinfo(long, HDFCompInfo) |
The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
Each annotation type has its own separate page with the following sections:
Each enum has its own separate page with the following sections:
Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object
. The interfaces do not inherit from java.lang.Object
.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
These links take you to the next or previous class, interface, package, or related page.
These links show and hide the HTML frames. All pages are available with or without frames.
The All Classes link shows all classes and interfaces except non-static nested types.
Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
The Constant Field Values page lists the static final fields and their values.
HDFLibraryException
, the HDF Library error
stack, and and the Java stack trace to the standard error stream.HDFLibraryException
the HDF Library error
stack, and and the Java stack trace to the specified print stream.HDFLibrary.SDgetcompinfo(long, HDFCompInfo)
See: Description
Package | Description |
---|---|
hdf.hdflib |
|
The JHI4 may be used by any Java application that needs to access HDF files. It is extremely important to emphasize that this package is not a pure Java implementation of the HDF library. The JHI4 calls the same HDF library that is used by C or FORTRAN programs. (Note that this product cannot be used in most network browsers because it accesses the local disk using native code.)
The Java HDF Interface consists of Java classes and a dynamically linked native library. The Java classes declare native methods, and the library contains C functions which implement the native methods. The C functions call the standard HDF library, which is linked as part of the same library on most platforms.
The central part of the JHI4 is the Java class hdf.hdflib.HDFLibrary. The HDFLibrary class calls the standard (i.e., `native' code) HDF library, with native methods for most of the HDF4functions.
For example, the HDF library has the function Hopen to open an HDF file. The Java interface is the class hdf.hdflib.HDFLibrary, which has a method:
static native int Hopen(String filename, int flags, int access );The native method is implemented in C using the Java Native Method Interface (JNI). This is written something like the following:
JNIEXPORT jint JNICALL Java_hdf_hdflib_HDFLibrary_Hopen ( JNIEnv *env, jclass class, jstring hdfFile, jint flags, jint access) { /* ...convert Java String to (char *) */ /* call the HDF library */ retVal = Hopen((char *)file, (unsigned)flags, (hid_t)access ); /* ... */ }This C function calls the HDF library and returns the result appropriately.
There is one native method for each HDF entry point (several hundred in all), which are compiled with the HDF library into a dynamically loaded library (libhdf_java). Note that this library must be built for each platform.
To call the HDF `Hopen' function, a Java program would import the package 'hdf.hdflib.*', and invoke the method on the class 'HDFLibrary'. The Java program would look something like this:
import hdf.hdflib.*; { /* ... */ try { file = HDFLibrary.Hopen("myFile.hdf", flags, access ); } catch (HDFException ex) { //... } /* ... */ }The HDFLibrary class automatically loads the native method implementations and the HDF library.
int HDFerror
java.lang.String msg
java.lang.String msg
java.lang.String msg
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: HDFJavaExceptionpublic class HDFChunkInfo
extends java.lang.Object
This is a generic class to represent the HDF chunk_info union, which contains parameters for the different chunking schemes.
The variant parameters are expressed as sub-classes of this class.
Modifier and Type | Field and Description |
---|---|
int[] |
chunk_lengths |
HDFCompInfo |
cinfo |
int |
comp_type |
int |
ctype |
Constructor and Description |
---|
HDFChunkInfo() |
HDFChunkInfo(int[] cl) |
HDFChunkInfo(int[] cl,
int ct,
HDFCompInfo ci) |
public int ctype
public int[] chunk_lengths
public int comp_type
public HDFCompInfo cinfo
public HDFChunkInfo()
public HDFChunkInfo(int[] cl, int ct, HDFCompInfo ci)
public HDFChunkInfo(int[] cl)
public class HDFCompInfo
extends java.lang.Object
This class is a container for the parameters to the HDF comp_info union.
The parameters for different compression schemes are represented as sub-classes of this class
Modifier and Type | Field and Description |
---|---|
int |
ctype |
Constructor and Description |
---|
HDFCompInfo() |
public class HDFConstants
extends java.lang.Object
This interface defines the values of constants defined by the HDF 4.2 API.
Modifier and Type | Field and Description |
---|---|
static int |
AN_DATA_DESC |
static int |
AN_DATA_LABEL |
static int |
AN_FILE_DESC |
static int |
AN_FILE_LABEL |
static java.lang.String |
ANNOTATION |
static java.lang.String |
CHAR16 |
static java.lang.String |
CHAR8 |
static int |
COMP_CODE_DEFLATE |
static int |
COMP_CODE_INVALID |
static int |
COMP_CODE_JPEG |
static int |
COMP_CODE_NBIT |
static int |
COMP_CODE_NONE |
static int |
COMP_CODE_RLE |
static int |
COMP_CODE_SKPHUFF |
static int |
COMP_CODE_SZIP |
static int |
COMP_IMCOMP |
static int |
COMP_JPEG |
static int |
COMP_NONE |
static int |
COMP_RLE |
static int |
DF_FORWARD |
static int |
DFACC_CREATE |
static int |
DFACC_DEFAULT |
static int |
DFACC_PARALLEL |
static int |
DFACC_RDONLY |
static int |
DFACC_RDWR |
static int |
DFACC_READ |
static int |
DFACC_SERIAL |
static int |
DFACC_WRITE |
static int |
DFIL_LINE |
static int |
DFIL_PIXEL |
static int |
DFIL_PLANE |
static int |
DFNT_CHAR |
static int |
DFNT_CHAR16
No supported by HDF
|
static int |
DFNT_CHAR8
char
|
static int |
DFNT_CUSTOM |
static int |
DFNT_DOUBLE |
static int |
DFNT_FLOAT |
static int |
DFNT_FLOAT128 |
static int |
DFNT_FLOAT32
float
|
static int |
DFNT_FLOAT64 |
static int |
DFNT_HDF |
static int |
DFNT_INT128 |
static int |
DFNT_INT16
short
|
static int |
DFNT_INT32
interger
|
static int |
DFNT_INT64
No supported
|
static int |
DFNT_INT8
8-bit integer
|
static int |
DFNT_LITEND |
static int |
DFNT_MASK |
static int |
DFNT_NATIVE |
static int |
DFNT_UCHAR |
static int |
DFNT_UCHAR16 |
static int |
DFNT_UCHAR8
unsigned char
|
static int |
DFNT_UINT128 |
static int |
DFNT_UINT16
unsigned interger
|
static int |
DFNT_UINT32
unsigned interger
|
static int |
DFNT_UINT64 |
static int |
DFNT_UINT8
unsigned 8-bit interger
|
static int |
DFREF_NONE |
static int |
DFREF_WILDCARD |
static int |
DFS_MAXLEN |
static int |
DFTAG_AR |
static int |
DFTAG_BREQ |
static int |
DFTAG_CAL |
static int |
DFTAG_CCN |
static int |
DFTAG_CFM |
static int |
DFTAG_CHUNK |
static int |
DFTAG_CHUNKED |
static int |
DFTAG_CI |
static int |
DFTAG_CI8 |
static int |
DFTAG_COMPRESSED |
static int |
DFTAG_DIA |
static int |
DFTAG_DIL |
static int |
DFTAG_DRAW |
static int |
DFTAG_EREQ |
static int |
DFTAG_FD |
static int |
DFTAG_FID |
static int |
DFTAG_FREE |
static int |
DFTAG_FV |
static int |
DFTAG_GREYJPEG |
static int |
DFTAG_GREYJPEG5 |
static int |
DFTAG_ID |
static int |
DFTAG_ID8 |
static int |
DFTAG_II8 |
static int |
DFTAG_IMC |
static int |
DFTAG_IMCOMP |
static int |
DFTAG_IP8 |
static int |
DFTAG_JPEG |
static int |
DFTAG_JPEG5 |
static int |
DFTAG_LD |
static int |
DFTAG_LINKED |
static int |
DFTAG_LUT |
static int |
DFTAG_MA |
static int |
DFTAG_MD |
static int |
DFTAG_MT |
static int |
DFTAG_MTO |
static int |
DFTAG_NDG |
static int |
DFTAG_NRI |
static int |
DFTAG_NT |
static int |
DFTAG_NULL |
static int |
DFTAG_RI |
static int |
DFTAG_RI8 |
static int |
DFTAG_RIG |
static int |
DFTAG_RLE |
static int |
DFTAG_RUN |
static int |
DFTAG_SD |
static int |
DFTAG_SDC |
static int |
DFTAG_SDD |
static int |
DFTAG_SDF |
static int |
DFTAG_SDG |
static int |
DFTAG_SDL |
static int |
DFTAG_SDLNK |
static int |
DFTAG_SDM |
static int |
DFTAG_SDRAG |
static int |
DFTAG_SDS |
static int |
DFTAG_SDT |
static int |
DFTAG_SDU |
static int |
DFTAG_T105 |
static int |
DFTAG_T14 |
static int |
DFTAG_TD |
static int |
DFTAG_TID |
static int |
DFTAG_VERSION |
static int |
DFTAG_VG |
static int |
DFTAG_VH |
static int |
DFTAG_VLINKED |
static int |
DFTAG_VLINKED_DATA |
static int |
DFTAG_VS |
static int |
DFTAG_WILDCARD |
static int |
DFTAG_XYP |
static java.lang.String |
DIM_VALS |
static java.lang.String |
DIM_VALS01 |
static int |
FAIL
FAIL
|
static java.lang.String |
FLOAT128 |
static java.lang.String |
FLOAT32 |
static java.lang.String |
FLOAT64 |
static int |
FULL_INTERLACE
interlacing supported by the vset.
|
static java.lang.String |
GR |
static java.lang.String |
GR_NAME |
static java.lang.String |
HDF_ATTRIBUTE |
static java.lang.String |
HDF_CDF |
static java.lang.String |
HDF_CHK_TBL |
static int |
HDF_CHUNK |
static int |
HDF_COMP |
static java.lang.String |
HDF_CRDVAR |
static java.lang.String |
HDF_DIMENSION |
static int |
HDF_NBIT |
static int |
HDF_NONE |
static java.lang.String |
HDF_SDSVAR |
static java.lang.String |
HDF_UDIMENSION |
static java.lang.String |
HDF_VARIABLE |
static java.lang.String |
INT128 |
static java.lang.String |
INT16 |
static java.lang.String |
INT32 |
static java.lang.String |
INT64 |
static java.lang.String |
INT8 |
static int |
MAX_VAR_DIMS |
static int |
MFGR_INTERLACE_COMPONENT
component interlacing scheme
|
static int |
MFGR_INTERLACE_LINE
line interlacing scheme
|
static int |
MFGR_INTERLACE_PIXEL
pixel interlacing scheme
|
static int |
NO_INTERLACE |
static java.lang.String |
RI_NAME |
static java.lang.String |
RI24 |
static java.lang.String |
RI8 |
static java.lang.String |
RIGATTRCLASS |
static java.lang.String |
RIGATTRNAME |
static int |
SD_DIMVAL_BW_COMP |
static int |
SD_DIMVAL_BW_INCOMP |
static int |
SD_FILL |
static int |
SD_NOFILL |
static int |
SD_UNLIMITED |
static java.lang.String |
SDS |
static java.lang.String |
UCHAR16 |
static java.lang.String |
UCHAR8 |
static java.lang.String |
UINT128 |
static java.lang.String |
UINT16 |
static java.lang.String |
UINT32 |
static java.lang.String |
UINT64 |
static java.lang.String |
UINT8 |
static java.lang.String |
VDATA |
static java.lang.String |
VGROUP |
Constructor and Description |
---|
HDFConstants() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getType(int type)
convert number type to string type
|
static int |
getType(java.lang.String type)
convert string type to number type
|
static int |
getTypeSize(int type)
gets the size of the data type in bytes,
e.g size of DFNT_FLOAT32 = 4
|
public static final int FAIL
public static final int DFACC_READ
public static final int DFACC_WRITE
public static final int DFACC_RDWR
public static final int DFACC_CREATE
public static final int DFACC_RDONLY
public static final int DFACC_DEFAULT
public static final int DFACC_SERIAL
public static final int DFACC_PARALLEL
public static final int AN_DATA_LABEL
public static final int AN_DATA_DESC
public static final int AN_FILE_LABEL
public static final int AN_FILE_DESC
public static final int DFREF_WILDCARD
public static final int DFTAG_WILDCARD
public static final int DFREF_NONE
public static final int DFTAG_NULL
public static final int DFTAG_LINKED
public static final int DFTAG_VERSION
public static final int DFTAG_COMPRESSED
public static final int DFTAG_VLINKED
public static final int DFTAG_VLINKED_DATA
public static final int DFTAG_CHUNKED
public static final int DFTAG_CHUNK
public static final int DFTAG_FID
public static final int DFTAG_FD
public static final int DFTAG_TID
public static final int DFTAG_TD
public static final int DFTAG_DIL
public static final int DFTAG_DIA
public static final int DFTAG_NT
public static final int DFTAG_MT
public static final int DFTAG_FREE
public static final int DFTAG_ID8
public static final int DFTAG_IP8
public static final int DFTAG_RI8
public static final int DFTAG_CI8
public static final int DFTAG_II8
public static final int DFTAG_ID
public static final int DFTAG_LUT
public static final int DFTAG_RI
public static final int DFTAG_CI
public static final int DFTAG_NRI
public static final int DFTAG_RIG
public static final int DFTAG_LD
public static final int DFTAG_MD
public static final int DFTAG_MA
public static final int DFTAG_CCN
public static final int DFTAG_CFM
public static final int DFTAG_AR
public static final int DFTAG_DRAW
public static final int DFTAG_RUN
public static final int DFTAG_XYP
public static final int DFTAG_MTO
public static final int DFTAG_T14
public static final int DFTAG_T105
public static final int DFTAG_SDG
public static final int DFTAG_SDD
public static final int DFTAG_SD
public static final int DFTAG_SDS
public static final int DFTAG_SDL
public static final int DFTAG_SDU
public static final int DFTAG_SDF
public static final int DFTAG_SDM
public static final int DFTAG_SDC
public static final int DFTAG_SDT
public static final int DFTAG_SDLNK
public static final int DFTAG_NDG
public static final int DFTAG_CAL
public static final int DFTAG_FV
public static final int DFTAG_BREQ
public static final int DFTAG_SDRAG
public static final int DFTAG_EREQ
public static final int DFTAG_VG
public static final int DFTAG_VH
public static final int DFTAG_VS
public static final int DFTAG_RLE
public static final int DFTAG_IMC
public static final int DFTAG_IMCOMP
public static final int DFTAG_JPEG
public static final int DFTAG_GREYJPEG
public static final int DFTAG_JPEG5
public static final int DFTAG_GREYJPEG5
public static final int MFGR_INTERLACE_PIXEL
public static final int MFGR_INTERLACE_LINE
public static final int MFGR_INTERLACE_COMPONENT
public static final int FULL_INTERLACE
public static final int NO_INTERLACE
public static final int DFNT_UCHAR8
public static final int DFNT_UCHAR
public static final int DFNT_CHAR8
public static final int DFNT_CHAR
public static final int DFNT_CHAR16
public static final int DFNT_UCHAR16
public static final int DFNT_FLOAT32
public static final int DFNT_FLOAT
public static final int DFNT_FLOAT64
public static final int DFNT_FLOAT128
public static final int DFNT_DOUBLE
public static final int DFNT_INT8
public static final int DFNT_UINT8
public static final int DFNT_INT16
public static final int DFNT_UINT16
public static final int DFNT_INT32
public static final int DFNT_UINT32
public static final int DFNT_INT64
public static final int DFNT_UINT64
public static final int DFNT_INT128
public static final int DFNT_UINT128
public static final int DFNT_HDF
public static final int DFNT_NATIVE
public static final int DFNT_CUSTOM
public static final int DFNT_LITEND
public static final int DFNT_MASK
public static final int DF_FORWARD
public static final int DFS_MAXLEN
public static final int COMP_NONE
public static final int COMP_JPEG
public static final int COMP_RLE
public static final int COMP_IMCOMP
public static final int COMP_CODE_NONE
public static final int COMP_CODE_RLE
public static final int COMP_CODE_NBIT
public static final int COMP_CODE_SKPHUFF
public static final int COMP_CODE_DEFLATE
public static final int COMP_CODE_SZIP
public static final int COMP_CODE_INVALID
public static final int COMP_CODE_JPEG
public static final int DFIL_PIXEL
public static final int DFIL_LINE
public static final int DFIL_PLANE
public static final int SD_UNLIMITED
public static final int SD_FILL
public static final int SD_NOFILL
public static final int SD_DIMVAL_BW_COMP
public static final int SD_DIMVAL_BW_INCOMP
public static final int HDF_NONE
public static final int HDF_CHUNK
public static final int HDF_COMP
public static final int HDF_NBIT
public static final int MAX_VAR_DIMS
public static final java.lang.String GR_NAME
public static final java.lang.String RI_NAME
public static final java.lang.String RIGATTRNAME
public static final java.lang.String RIGATTRCLASS
public static final java.lang.String HDF_ATTRIBUTE
public static final java.lang.String HDF_VARIABLE
public static final java.lang.String HDF_DIMENSION
public static final java.lang.String HDF_UDIMENSION
public static final java.lang.String DIM_VALS
public static final java.lang.String DIM_VALS01
public static final java.lang.String HDF_CHK_TBL
public static final java.lang.String HDF_SDSVAR
public static final java.lang.String HDF_CRDVAR
public static final java.lang.String HDF_CDF
public static final java.lang.String ANNOTATION
public static final java.lang.String RI8
public static final java.lang.String RI24
public static final java.lang.String GR
public static final java.lang.String SDS
public static final java.lang.String VDATA
public static final java.lang.String VGROUP
public static final java.lang.String UCHAR8
public static final java.lang.String CHAR8
public static final java.lang.String UCHAR16
public static final java.lang.String CHAR16
public static final java.lang.String FLOAT32
public static final java.lang.String FLOAT64
public static final java.lang.String FLOAT128
public static final java.lang.String INT8
public static final java.lang.String UINT8
public static final java.lang.String INT16
public static final java.lang.String UINT16
public static final java.lang.String INT32
public static final java.lang.String UINT32
public static final java.lang.String INT64
public static final java.lang.String UINT64
public static final java.lang.String INT128
public static final java.lang.String UINT128
public static java.lang.String getType(int type)
type
- the number representing the data typepublic static int getType(java.lang.String type)
type
- the string representing the data typepublic static int getTypeSize(int type)
type
- the number representing the data typepublic class HDFDeflateCompInfo extends HDFNewCompInfo
This class is a container for the parameters to the HDF DEFLATION compression algorithm.
In this case, the only parameter is the ``level'' of deflation.
Modifier and Type | Field and Description |
---|---|
int |
level |
ctype
Constructor and Description |
---|
HDFDeflateCompInfo() |
HDFDeflateCompInfo(int l) |
public class HDFException
extends java.lang.Exception
The class HDFException returns errors from the HDF library.
Two sub-classes of HDFException are defined:
These exceptions will be sub-classed to represent specific error conditions, as needed.
The only specific exception currently defined is HDFNotImplementedException, indicating a function that is part of the HDF API, but which cannot or will not be implemented for Java.
Modifier and Type | Field and Description |
---|---|
protected int |
HDFerror |
static java.lang.String |
HDFExceptionMessage |
static java.lang.String |
HDFMessage |
protected java.lang.String |
msg |
static java.lang.String |
OutOfMemoryMessage |
Constructor and Description |
---|
HDFException() |
HDFException(int err) |
HDFException(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
public static final java.lang.String OutOfMemoryMessage
public static final java.lang.String HDFExceptionMessage
public static final java.lang.String HDFMessage
protected int HDFerror
protected java.lang.String msg
public class HDFIMCOMPCompInfo extends HDFOldCompInfo
This class is a container for the parameters to the HDF ``Image compression'' compression class.
In this case, no auxilliary information is needed.
ctype
Constructor and Description |
---|
HDFIMCOMPCompInfo() |
public class HDFJavaException extends HDFException
The class HDFJavaException returns errors from the Java wrapper of theHDF library.
These errors include Java configuration errors, security violations, and resource exhaustion.
HDFerror, HDFExceptionMessage, HDFMessage, OutOfMemoryMessage
Constructor and Description |
---|
HDFJavaException() |
HDFJavaException(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
public HDFJavaException()
public HDFJavaException(java.lang.String s)
public java.lang.String getMessage()
getMessage
in class HDFException
public class HDFJPEGCompInfo extends HDFOldCompInfo
This class is a container for the parameters to the HDF JPEG compression class.
In this case, the parameters are the quality and baseline.
Modifier and Type | Field and Description |
---|---|
int |
force_baseline |
int |
quality |
ctype
Constructor and Description |
---|
HDFJPEGCompInfo() |
HDFJPEGCompInfo(int qual,
int fb) |
public class HDFLibrary
extends java.lang.Object
implements java.io.Serializable
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 *, VOIDP, char * (meaning ``any'') | Special -- see HDFArray |
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, VOIDP data);
where ``VOIDP'' means that the data 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 layed 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 contigous 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[][][].
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
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
H4_LIBRARY_NAME_PROPERTY_KEY |
static java.lang.String |
HDFPATH_PROPERTY_KEY |
Constructor and Description |
---|
HDFLibrary() |
Modifier and Type | Method and Description |
---|---|
static int |
ANannlen(long ann_id) |
static int |
ANannlist(long an_id,
int anntype,
short tag,
short ref,
int[] ann_list) |
static short |
ANatype2tag(int antag) |
static int |
ANcreate(long an_id,
short tag,
short ref,
int type) |
static int |
ANcreatef(long an_id,
int type) |
static boolean |
ANend(long an_id) |
static boolean |
ANendaccess(long an_id) |
static boolean |
ANfileinfo(long an_id,
int[] info) |
static int |
ANget_tagref(long an_id,
int index,
int type,
short[] tagref) |
static boolean |
ANid2tagref(long an_id,
short[] tagref) |
static int |
ANnumann(long an_id,
int anntype,
short tag,
short ref) |
static boolean |
ANreadann(long ann_id,
java.lang.String[] annbuf,
int maxlen) |
static int |
ANselect(long an_id,
int index,
int anntype) |
static int |
ANstart(long fid) |
static int |
ANtag2atype(short anttype) |
static long |
ANtagref2id(long an_id,
short tag,
short ref) |
static boolean |
ANwriteann(long ann_id,
java.lang.String label,
int ann_length) |
static boolean |
DF24addimage(java.lang.String filename,
byte[] image,
int width,
int height) |
static boolean |
DF24addimage(java.lang.String filename,
java.lang.Object theImage,
int width,
int height) |
static boolean |
DF24getdims(java.lang.String fileName,
int[] argv) |
static boolean |
DF24getimage(java.lang.String fileName,
byte[] imagedata,
int width,
int height) |
static boolean |
DF24getimage(java.lang.String fileName,
java.lang.Object theImagedata,
int width,
int height) |
static short |
DF24lastref() |
static int |
DF24nimages(java.lang.String fileName) |
static boolean |
DF24putimage(java.lang.String filename,
byte[] image,
int width,
int height) |
static boolean |
DF24putimage(java.lang.String filename,
java.lang.Object theImage,
int width,
int height) |
static boolean |
DF24readref(java.lang.String filename,
int ref) |
static boolean |
DF24reqil(int il) |
static boolean |
DF24restart() |
static boolean |
DF24setcompress(int type,
HDFCompInfo cinfo) |
static boolean |
DF24setdims(int width,
int height) |
static boolean |
DF24setil(int il) |
static int |
DFKNTsize(long numbertype) |
static boolean |
DFPaddpal(java.lang.String filename,
byte[] palette) |
static boolean |
DFPgetpal(java.lang.String filename,
byte[] palette) |
static short |
DFPlastref() |
static int |
DFPnpals(java.lang.String filename) |
static boolean |
DFPputpal(java.lang.String filename,
byte[] palette,
boolean overwrite,
java.lang.String filemode) |
static boolean |
DFPputpal(java.lang.String filename,
byte[] palette,
int overwrite,
java.lang.String filemode) |
static boolean |
DFPreadref(java.lang.String filename,
short ref) |
static short |
DFPrestart() |
static boolean |
DFPwriteref(java.lang.String filename,
short ref) |
static boolean |
DFR8addimage(java.lang.String filename,
byte[] image,
int width,
int height,
short compress) |
static boolean |
DFR8addimage(java.lang.String filename,
java.lang.Object theImage,
int width,
int height,
short compress) |
static boolean |
DFR8getdims(java.lang.String fileName,
int[] argv,
boolean[] haspalette) |
static boolean |
DFR8getimage(java.lang.String fileName,
byte[] imagedata,
int width,
int height,
byte[] palette) |
static boolean |
DFR8getimage(java.lang.String fileName,
java.lang.Object theImagedata,
int width,
int height,
byte[] palette) |
static boolean |
DFR8getpalref(short[] palref) |
static short |
DFR8lastref() |
static int |
DFR8nimages(java.lang.String fileName) |
static boolean |
DFR8putimage(java.lang.String filename,
byte[] image,
int width,
int height,
short compress) |
static boolean |
DFR8putimage(java.lang.String filename,
java.lang.Object theImage,
int width,
int height,
short compress) |
static boolean |
DFR8readref(java.lang.String filename,
int ref) |
static boolean |
DFR8restart() |
static boolean |
DFR8setcompress(int type,
HDFCompInfo cinfo)
DFR8setcompress sets compression scheme for 8-bit image
|
static boolean |
DFR8setpalette(byte[] palette) |
static boolean |
DFR8writeref(java.lang.String filename,
short ref) |
static java.lang.String |
getJHIVersion()
Deprecated.
|
static boolean |
GRattrinfo(long id,
int index,
java.lang.String[] name,
int[] argv) |
static int |
GRcreate(long gr_id,
java.lang.String name,
int ncomp,
long data_type,
int interlace_mode,
int[] dim_sizes) |
static boolean |
GRend(long grid) |
static boolean |
GRendaccess(long riid) |
static boolean |
GRfileinfo(long grid,
int[] args) |
static int |
GRfindattr(long id,
java.lang.String name) |
static boolean |
GRgetattr(long id,
int index,
byte[] data) |
static boolean |
GRgetattr(long id,
int index,
java.lang.Object theData) |
static boolean |
GRgetchunkinfo(long sdsid,
HDFChunkInfo chunk_def,
int[] flag) |
static boolean |
GRgetcompinfo(long ri_id,
HDFCompInfo c_info) |
static boolean |
GRgetcompress(long ri_id,
HDFCompInfo c_info) |
static boolean |
GRgetiminfo(long grid,
java.lang.String[] gr_name,
int[] args,
int[] dim_sizes) |
static int |
GRgetlutid(long rrid,
int index) |
static boolean |
GRgetlutinfo(long lutid,
int[] args) |
static int |
GRgetnluts(long rrid) |
static short |
GRidtoref(long riid) |
static short |
GRluttoref(long pal_id) |
static int |
GRnametoindex(long grid,
java.lang.String name) |
static boolean |
GRreadchunk(long sdsid,
int[] origin,
byte[] theData) |
static boolean |
GRreadchunk(long grid,
int[] origin,
java.lang.Object theData) |
static boolean |
GRreadimage(long grid,
int[] start,
int[] stride,
int[] count,
byte[] data) |
static boolean |
GRreadimage(long grid,
int[] start,
int[] stride,
int[] count,
java.lang.Object theData) |
static boolean |
GRreadlut(long lutid,
byte[] data) |
static boolean |
GRreadlut(long lutid,
java.lang.Object theData) |
static int |
GRreftoindex(long grid,
short ref) |
static boolean |
GRreqimageil(long rrid,
int interlace) |
static boolean |
GRreqlutil(long riid,
int interlace) |
static int |
GRselect(long grid,
int index) |
static boolean |
GRsetattr(long gr_id,
java.lang.String attr_name,
long data_type,
int count,
byte[] values) |
static boolean |
GRsetattr(long gr_id,
java.lang.String attr_name,
long data_type,
int count,
java.lang.Object theData) |
static boolean |
GRsetattr(long gr_id,
java.lang.String attr_name,
long data_type,
int count,
java.lang.String values) |
static boolean |
GRsetchunk(long sdsid,
HDFChunkInfo chunk_def,
int flags) |
static int |
GRsetchunkcache(long sdsid,
int maxcache,
int flags) |
static boolean |
GRsetcompress(long ri_id,
int comp_type,
HDFCompInfo c_info) |
static boolean |
GRsetexternalfile(long ri_id,
java.lang.String filename,
int offset) |
static int |
GRstart(long fid) |
static boolean |
GRwriteimage(long grid,
int[] start,
int[] stride,
int[] edge,
byte[] data) |
static boolean |
GRwriteimage(long grid,
int[] start,
int[] stride,
int[] edge,
java.lang.Object theData) |
static boolean |
GRwritelut(long pal_id,
int ncomp,
int data_type,
int interlace,
int num_entries,
byte[] pal_data) |
static boolean |
GRwritelut(long pal_id,
int ncomp,
int data_type,
int interlace,
int num_entries,
java.lang.Object theData) |
static boolean |
Hcache(long file_id,
int cache_switch) |
static int |
HCget_config_info(int coder_type)
New API for hdf-42r1
|
static boolean |
Hclose(long fid) |
static int |
HDdont_atexit() |
static boolean |
HDFclose(long file_id) |
static long |
HDFopen(java.lang.String filename,
int access,
short n_dds) |
static java.lang.String |
HDgetNTdesc(int nt) |
static void |
HEprint(java.lang.Object stream,
int level) |
static java.lang.String |
HEstring(int error_code) |
static short |
HEvalue(int level) |
static boolean |
Hgetfileversion(long file_id,
int[] vers,
java.lang.String[] string)
Note: the version of an HDF file is not well defined,
it is not recommended that programs rely on these numbers.
|
static boolean |
Hgetlibversion(int[] vers,
java.lang.String[] string) |
static boolean |
Hishdf(java.lang.String fileName) |
static int |
Hnumber(long fid) |
static int |
Hnumber(long fid,
int tagtype) |
static long |
Hopen(java.lang.String filename) |
static long |
Hopen(java.lang.String filename,
int access) |
static long |
Hopen(java.lang.String filename,
int access,
int ndds) |
static boolean |
Hsetaccesstype(long h_id,
int access_type) |
static boolean |
Hsync(long file_id) |
static boolean |
HXsetcreatedir(java.lang.String dir) |
static boolean |
HXsetdir(java.lang.String dir) |
static void |
loadH4Lib() |
static boolean |
SDattrinfo(long id,
int index,
java.lang.String[] name,
int[] argv) |
static boolean |
SDcheckempty(long sdsid,
int[] emptySDS) |
static long |
SDcreate(long sd_id,
java.lang.String name,
long number_type,
int rank,
int[] dimsizes) |
static boolean |
SDdiminfo(long dimid,
java.lang.String[] name,
int[] argv) |
static boolean |
SDend(long sdid) |
static boolean |
SDendaccess(long sdsid) |
static boolean |
SDfileinfo(long sdid,
int[] argv) |
static long |
SDfindattr(long id,
java.lang.String name) |
static boolean |
SDgetcal(long sdsid,
double[] argv,
int[] NT) |
static boolean |
SDgetchunkinfo(long sdsid,
HDFChunkInfo chunk_def,
int[] clflags) |
static boolean |
SDgetcompinfo(long id,
HDFCompInfo cinfo)
Deprecated.
As of HDF 4.2.9, replaced by
SDgetcompinfo(long, HDFCompInfo) |
static boolean |
SDgetdatastrs(long sdsid,
java.lang.String[] strings,
int len) |
static long |
SDgetdimid(long sdsid,
int index) |
static boolean |
SDgetdimscale(long dimid,
byte[] data) |
static boolean |
SDgetdimscale(long dimid,
java.lang.Object theData) |
static boolean |
SDgetdimstrs(long dimid,
java.lang.String[] args,
int len) |
static boolean |
SDgetfillvalue(long sdsid,
byte[] fillValue) |
static boolean |
SDgetfillvalue(long sdsid,
java.lang.Object[] theFillValue) |
static boolean |
SDgetinfo(long sdsid,
java.lang.String[] name,
int[] dimsizes,
int[] args) |
static boolean |
SDgetrange(long sdsid,
byte[] max,
byte[] min) |
static boolean |
SDgetrange(long sdsid,
double[] maxmin) |
static int |
SDidtoref(long sdsid) |
static boolean |
SDiscoordvar(long sdsid) |
static boolean |
SDisdimval_bwcomp(long dimid) |
static boolean |
SDisrecord(long sdsid) |
static int |
SDnametoindex(long sdid,
java.lang.String name) |
static boolean |
SDreadattr(long id,
int index,
byte[] data) |
static boolean |
SDreadattr(long id,
int index,
java.lang.Object theData) |
static boolean |
SDreadchunk(long sdsid,
int[] origin,
byte[] theData) |
static boolean |
SDreadchunk(long sdsid,
int[] origin,
java.lang.Object theData) |
static boolean |
SDreaddata_double(long sdsid,
int[] start,
int[] stride,
int[] count,
double[] theData) |
static boolean |
SDreaddata_float(long sdsid,
int[] start,
int[] stride,
int[] count,
float[] theData) |
static boolean |
SDreaddata_int(long sdsid,
int[] start,
int[] stride,
int[] count,
int[] theData) |
static boolean |
SDreaddata_long(long sdsid,
int[] start,
int[] stride,
int[] count,
long[] theData) |
static boolean |
SDreaddata_short(long sdsid,
int[] start,
int[] stride,
int[] count,
short[] theData) |
static boolean |
SDreaddata(long sdsid,
int[] start,
int[] stride,
int[] count,
byte[] data) |
static boolean |
SDreaddata(long sdsid,
int[] start,
int[] stride,
int[] count,
java.lang.Object theData) |
static int |
SDreftoindex(long sdid,
int ref) |
static long |
SDselect(long sdid,
int index) |
static boolean |
SDsetaccesstype(long id,
int accesstype) |
static boolean |
SDsetattr(long s_id,
java.lang.String attr_name,
long num_type,
int count,
byte[] values) |
static boolean |
SDsetattr(long s_id,
java.lang.String attr_name,
long num_type,
int count,
java.lang.Object theValues) |
static boolean |
SDsetblocksize(long sdsid,
int block_size) |
static boolean |
SDsetcal(long sds_id,
double cal,
double cal_err,
double offset,
double offset_err,
int number_type) |
static boolean |
SDsetchunk(long sdsid,
HDFChunkInfo chunk_def,
int flags) |
static int |
SDsetchunkcache(long sdsid,
int maxcache,
int flags) |
static boolean |
SDsetcompress(long id,
int type,
HDFCompInfo cinfo) |
static boolean |
SDsetdatastrs(long sds_id,
java.lang.String label,
java.lang.String unit,
java.lang.String format,
java.lang.String coordsys) |
static boolean |
SDsetdimname(long dim_id,
java.lang.String dim_name) |
static boolean |
SDsetdimscale(long dim_id,
int count,
int number_type,
byte[] data) |
static boolean |
SDsetdimscale(long dim_id,
int count,
int number_type,
java.lang.Object theData) |
static boolean |
SDsetdimstrs(long dim_id,
java.lang.String label,
java.lang.String unit,
java.lang.String format) |
static boolean |
SDsetdimval_comp(long dimid,
int comp_mode) |
static boolean |
SDsetexternalfile(long sds_id,
java.lang.String filename,
int offset) |
static boolean |
SDsetfillmode(long sdsid,
boolean fill_enable) |
static boolean |
SDsetfillmode(long sdsid,
int fillmode) |
static boolean |
SDsetfillvalue(long sds_id,
byte[] fill_val) |
static boolean |
SDsetfillvalue(long sds_id,
java.lang.Object the_fill_val) |
static boolean |
SDsetnbitdataset(long id,
int start_bit,
int bit_len,
int sign_ext,
int fill_one) |
static boolean |
SDsetrange(long sdsid,
byte[] max,
byte[] min) |
static boolean |
SDsetrange(long sdsid,
java.lang.Object max,
java.lang.Object min) |
static long |
SDstart(java.lang.String filename,
int accessmode) |
static boolean |
SDwritechunk(long sdsid,
int[] origin,
byte[] data) |
static boolean |
SDwritechunk(long sdsid,
int[] origin,
java.lang.Object theData) |
static boolean |
SDwritedata(long sdsid,
int[] start,
int[] stride,
int[] count,
byte[] data) |
static boolean |
SDwritedata(long sdsid,
int[] start,
int[] stride,
int[] count,
java.lang.Object theData) |
static int |
Vaddtagref(long vgroup_id,
int tag,
int ref) |
static int |
Vattach(long fid,
int vgroup_ref,
java.lang.String access) |
static boolean |
Vattrinfo(long id,
int index,
java.lang.String[] name,
int[] argv) |
static int |
Vdeletetagref(long vgroup_id,
int tag,
int ref) |
static void |
Vdetach(long vgroup_id) |
static void |
Vend(long file_id) |
static int |
VFfieldesize(long vdata_id,
int field_index) |
static int |
VFfieldisize(long vdata_id,
int field_index) |
static java.lang.String |
VFfieldname(long vdata_id,
int field_index) |
static int |
VFfieldorder(long vdata_id,
int field_index) |
static long |
VFfieldtype(long vdata_id,
int field_index) |
static int |
Vfind(long file_id,
java.lang.String vgroup_name) |
static long |
Vfindattr(long id,
java.lang.String name) |
static int |
Vfindclass(long file_id,
java.lang.String vgclassname) |
static int |
Vflocate(int key,
java.lang.String vgclassname) |
static int |
VFnfields(long vkey) |
static boolean |
Vgetattr(long id,
int index,
byte[] data) |
static boolean |
Vgetattr(long id,
int index,
java.lang.Object theData) |
static void |
Vgetclass(long vgroup_id,
java.lang.String[] hdfclassname) |
static int |
Vgetid(long file_id,
int vgroup_ref) |
static void |
Vgetname(long vgroup_id,
java.lang.String[] hdfname) |
static int |
Vgetnext(int key,
int ref) |
static boolean |
Vgettagref(long vgroup_id,
int index,
int[] tagref) |
static int |
Vgettagrefs(long vgroup_id,
int[] tags,
int[] refs,
int arraysize) |
static int |
Vgetversion(long id) |
static int |
VHmakegroup(long file_id,
int[] tag_array,
int[] ref_array,
int n_objects,
java.lang.String vgroup_name,
java.lang.String vgroup_class) |
static int |
VHstoredata(long file_id,
java.lang.String fieldname,
byte[] buf,
int n_records,
int data_type,
java.lang.String vdata_name,
java.lang.String vdata_class) |
static int |
VHstoredata(long file_id,
java.lang.String fieldname,
java.lang.Object thebuf,
int n_records,
int data_type,
java.lang.String vdata_name,
java.lang.String vdata_class) |
static int |
VHstoredatam(long file_id,
java.lang.String fieldname,
byte[] buf,
int n_records,
int data_type,
java.lang.String vdata_name,
java.lang.String vdata_class,
int order) |
static int |
VHstoredatam(long file_id,
java.lang.String fieldname,
java.lang.Object buf,
int n_records,
int data_type,
java.lang.String vdata_name,
java.lang.String vdata_class,
int order) |
static boolean |
Vinqtagref(long vgroup_id,
int tag,
int ref) |
static boolean |
Vinquire(long vgroup_id,
int[] n_entries,
java.lang.String[] vgroup_name) |
static int |
Vinsert(long vgroup_id,
long v_id) |
static boolean |
Visvg(long vgroup_id,
int vgroup_ref) |
static boolean |
Visvs(long vgroup_id,
int vdata_ref) |
static int |
Vlone(long fid,
int[] ref_array,
int buffersize) |
static int |
Vnattrs(long id) |
static int |
Vnrefs(int key,
int ref) |
static int |
Vntagrefs(long vgroup_id) |
static int |
VQueryref(long vkey) |
static int |
VQuerytag(long vkey) |
static boolean |
VSappendable(int vkey,
int block_size) |
static int |
VSattach(long fid,
int vdata_ref,
java.lang.String access) |
static boolean |
VSattrinfo(long id,
int index,
int attr_index,
java.lang.String[] name,
int[] argv) |
static void |
VSdetach(long vdata_id) |
static int |
VSelts(long vdata_id) |
static boolean |
Vsetattr(long id,
java.lang.String attr_name,
long data_type,
int count,
byte[] data) |
static boolean |
Vsetattr(long id,
java.lang.String attr_name,
long data_type,
int count,
java.lang.Object theData) |
static boolean |
Vsetattr(long id,
java.lang.String attr_name,
long data_type,
int count,
java.lang.String values) |
static boolean |
Vsetclass(long vgroup_id,
java.lang.String vgclassname) |
static boolean |
Vsetname(long vgroup_id,
java.lang.String vgname) |
static boolean |
VSfdefine(long vdata_id,
java.lang.String fieldname,
int numbertype,
int order) |
static boolean |
VSfexist(long vdata_id,
java.lang.String fields) |
static int |
VSfind(long file_id,
java.lang.String vdataname) |
static int |
VSfindattr(long id,
int index,
java.lang.String name) |
static int |
VSfindclass(long file_id,
java.lang.String vgclass) |
static int |
VSfindex(long id,
java.lang.String name,
int[] findex) |
static int |
VSfnattrs(long id,
int fnattrs) |
static boolean |
VSgetattr(long id,
int index,
int attr_index,
byte[] data) |
static boolean |
VSgetattr(long id,
int index,
int attr_index,
java.lang.Object theData) |
static void |
VSgetclass(long vdata_id,
java.lang.String[] hdfclassname) |
static int |
VSgetfields(long vdata_id,
java.lang.String[] fieldname) |
static long |
VSgetid(long file_id,
int vdata_ref) |
static int |
VSgetinterlace(long vdata_id) |
static void |
VSgetname(long vdata_id,
java.lang.String[] hdfname) |
static int |
VSgetversion(int vkey) |
static boolean |
VSinquire(long vdata_id,
int[] iargs) |
static boolean |
VSinquire(long vdata_id,
int[] iargs,
java.lang.String[] sargs) |
static boolean |
VSisattr(long id) |
static int |
VSlone(long fid,
int[] ref_array,
int buffersize) |
static int |
VSnattrs(long id) |
static boolean |
VSQuerycount(long vdata_id,
int[] n_records) |
static boolean |
VSQueryfields(long vdata_id,
java.lang.String[] fields) |
static boolean |
VSQueryinterlace(long vdata_id,
int[] interlace) |
static boolean |
VSQueryname(long vdata_id,
java.lang.String[] vdata_name) |
static int |
VSQueryref(long vdata_id) |
static int |
VSQuerytag(long vdata_id) |
static boolean |
VSQueryvsize(long vdata_id,
int[] vdata_size) |
static int |
VSread(long vdata_id,
byte[] databuf,
int nrecord,
int interlace) |
static int |
VSread(long vdata_id,
java.lang.Object theData,
int nrecord,
int interlace) |
static int |
VSseek(long vdata_id,
int record) |
static boolean |
VSsetattr(long id,
int index,
java.lang.String attr_name,
long data_type,
int count,
byte[] values) |
static boolean |
VSsetattr(long id,
int index,
java.lang.String attr_name,
long data_type,
int count,
java.lang.Object theData) |
static boolean |
VSsetattr(long id,
int index,
java.lang.String attr_name,
long data_type,
int count,
java.lang.String values) |
static int |
VSsetblocksize(long vdata_id,
int blocksize) |
static void |
VSsetclass(long vdata_id,
java.lang.String vdata_class) |
static boolean |
VSsetexternalfile(int vkey,
java.lang.String filename,
int offset) |
static boolean |
VSsetfields(long vdata_id,
java.lang.String fields) |
static boolean |
VSsetinterlace(long vdata_id,
int interlace) |
static void |
VSsetname(long vdata_id,
java.lang.String vdata_name) |
static int |
VSsetnumblocks(long vdata_id,
int numblocks) |
static int |
VSsizeof(long vdata_id,
java.lang.String fields) |
static boolean |
Vstart(long fid) |
static int |
VSwrite(long vdata_id,
byte[] databuf,
int n_records,
int interlace) |
static int |
VSwrite(long vdata_id,
java.lang.Object databuf,
int n_records,
int interlace) |
public static final java.lang.String HDFPATH_PROPERTY_KEY
public static final java.lang.String H4_LIBRARY_NAME_PROPERTY_KEY
public static void loadH4Lib()
@Deprecated public static final java.lang.String getJHIVersion()
public static long Hopen(java.lang.String filename) throws HDFException
HDFException
public static long Hopen(java.lang.String filename, int access) throws HDFException
HDFException
public static long Hopen(java.lang.String filename, int access, int ndds) throws HDFException
HDFException
public static boolean Hclose(long fid) throws HDFException
HDFException
public static int HDdont_atexit() throws HDFException
HDFException
public static boolean Hishdf(java.lang.String fileName) throws HDFException
HDFException
public static int Hnumber(long fid) throws HDFException
HDFException
public static int Hnumber(long fid, int tagtype) throws HDFException
HDFException
public static int DFKNTsize(long numbertype) throws HDFException
HDFException
public static java.lang.String HDgetNTdesc(int nt) throws HDFException
HDFException
public static boolean Hcache(long file_id, int cache_switch) throws HDFException
HDFException
public static boolean Hgetfileversion(long file_id, int[] vers, java.lang.String[] string) throws HDFException
file_id
- IN: long, the file descriptor returned by Hopenvers
- OUT: int[3], the major version, minor version,
and release number of the file.string
- OUT: String[1], the version stringHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean Hgetlibversion(int[] vers, java.lang.String[] string) throws HDFException
vers
- OUT: int[3], the major version, minor version,
and release number of the HDF library.string
- OUT: String[1], the version stringHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean Hsetaccesstype(long h_id, int access_type) throws HDFException
HDFException
public static boolean Hsync(long file_id) throws HDFException
HDFException
public static int ANstart(long fid) throws HDFException
HDFException
public static boolean ANend(long an_id) throws HDFException
HDFException
public static boolean ANendaccess(long an_id) throws HDFException
HDFException
public static boolean ANfileinfo(long an_id, int[] info) throws HDFException
an_id
- IN: the AN interface id, returned by ANstartinfo
- OUT: int[4], n_file_label, n_file_desc,
n_data_label, n_data_descHDFException
- should be thrown for errors.public static int ANselect(long an_id, int index, int anntype) throws HDFException
HDFException
public static int ANnumann(long an_id, int anntype, short tag, short ref) throws HDFException
HDFException
public static short ANatype2tag(int antag) throws HDFException
HDFException
public static int ANtag2atype(short anttype) throws HDFException
HDFException
public static int ANannlist(long an_id, int anntype, short tag, short ref, int[] ann_list) throws HDFException
an_id
- IN: the AN interface id, returned by ANstartanntype
- IN: the number type, as defined in HDFConstantstag
- IN: the HDF tagref
- IN: the HDF refann_list
- OUT: int[], an array of annotation identifiers.
The array must be long enough to hold the number of annotations
returned by ANnumannHDFException
- should be thrown for errors.public static int ANannlen(long ann_id) throws HDFException
HDFException
public static boolean ANreadann(long ann_id, java.lang.String[] annbuf, int maxlen) throws HDFException
ann_id
- IN: the AN interface id, returned by ANstartannbuf
- OUT: String[1], the annotation is returned as annbuf[0].maxlen
- IN: int, the maximum length of the string.HDFException
- should be thrown for errors.public static int ANcreate(long an_id, short tag, short ref, int type) throws HDFException
HDFException
public static int ANcreatef(long an_id, int type) throws HDFException
HDFException
public static int ANget_tagref(long an_id, int index, int type, short[] tagref) throws HDFException
an_id
- IN: the AN interface id, returned by ANstartindex
- IN: the index of the annotationtype
- IN: the type of the annotationtagref
- OUT: short[2], the tag and ref of the annotationHDFException
- should be thrown for errors.public static boolean ANid2tagref(long an_id, short[] tagref) throws HDFException
an_id
- IN: the AN interface id, returned by ANstarttagref
- OUT: short[2], the tag and ref of the annotationHDFException
- should be thrown for errors.public static long ANtagref2id(long an_id, short tag, short ref) throws HDFException
HDFException
public static boolean ANwriteann(long ann_id, java.lang.String label, int ann_length) throws HDFException
HDFException
public static boolean DFPaddpal(java.lang.String filename, byte[] palette) throws HDFException
HDFException
public static boolean DFPgetpal(java.lang.String filename, byte[] palette) throws HDFException
HDFException
public static short DFPlastref() throws HDFException
HDFException
public static int DFPnpals(java.lang.String filename) throws HDFException
HDFException
public static boolean DFPputpal(java.lang.String filename, byte[] palette, int overwrite, java.lang.String filemode) throws HDFException
HDFException
public static boolean DFPputpal(java.lang.String filename, byte[] palette, boolean overwrite, java.lang.String filemode) throws HDFException
filename
- IN: String, the name of the HDF filepalette
- IN: byte[] the paletteoverwrite
- IN: boolean, converted to 1 == true, 0 == false
to call the HDF libraryfilemode
- IN: if "a" append palette to file, "w" create new fileHDFException
- should be thrown for errors.public static boolean DFPreadref(java.lang.String filename, short ref) throws HDFException
HDFException
public static short DFPrestart() throws HDFException
HDFException
public static boolean DFPwriteref(java.lang.String filename, short ref) throws HDFException
HDFException
public static int GRstart(long fid) throws HDFException
HDFException
public static boolean GRend(long grid) throws HDFException
HDFException
public static boolean GRfileinfo(long grid, int[] args) throws HDFException
grid
- IN: the GR interface id, returned by GRstartargs
- OUT: int[2], n_datasets and n_file_attrsHDFException
- should be thrown for errors.public static boolean GRgetchunkinfo(long sdsid, HDFChunkInfo chunk_def, int[] flag) throws HDFException
sdsid
- IN: the SD identifier returned by SDselectchunk_def
- OUT: HDFChunkInfo, the chunking infoflag
- OUT: int[1], the type of chunkingNOTE:The chunking algorithm-specific information is passed in an appropriate sub-class of HDFChunkInfo.
HDFException
- should be thrown for errors.public static int GRselect(long grid, int index) throws HDFException
HDFException
public static int GRnametoindex(long grid, java.lang.String name) throws HDFException
HDFException
public static boolean GRgetiminfo(long grid, java.lang.String[] gr_name, int[] args, int[] dim_sizes) throws HDFException
grid
- IN: the GR interface id, returned by GRstartgr_name
- OUT: name of raster imageargs
- 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 imagedim_sizes
- OUT: int[2], dim_sizesNOTE: the parameters for the Java interface are not in the same order as the C interface.
HDFException
- should be thrown for errors.public static boolean GRreadimage(long grid, int[] start, int[] stride, int[] count, byte[] data) throws HDFException
grid
- IN: the GR interface id, returned by GRstartstart
- IN: int[2], startstride
- 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], countdata
- OUT: byte[], dataNOTE: to read into a Java 2D array use the alternative routine below.
HDFException
- should be thrown for errors.public static boolean GRreadimage(long grid, int[] start, int[] stride, int[] count, java.lang.Object theData) throws HDFException
grid
- IN: the GR interface id, returned by GRstartstart
- IN: int[2], startstride
- 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], counttheData
- OUT: Object, a Java array of appropriate
type, dimensions, and size.Note: reads the data as bytes and converts to the Java array.
HDFException
- should be thrown for errors.public static boolean GRendaccess(long riid) throws HDFException
HDFException
public static short GRidtoref(long riid) throws HDFException
HDFException
public static int GRreftoindex(long grid, short ref) throws HDFException
HDFException
public static boolean GRreqlutil(long riid, int interlace) throws HDFException
HDFException
public static boolean GRreqimageil(long rrid, int interlace) throws HDFException
HDFException
public static int GRgetlutid(long rrid, int index) throws HDFException
HDFException
public static int GRgetnluts(long rrid) throws HDFException
HDFException
public static boolean GRgetlutinfo(long lutid, int[] args) throws HDFException
lutid
- IN: the palette identifier returned by GRgetlutidargs
- 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.HDFException
- should be thrown for errors.public static boolean GRreadlut(long lutid, byte[] data) throws HDFException
lutid
- IN: the palette identifier returned by GRgetlutiddata
- OUT: byte[], palette data, in bytesNOTE: to read into a Java 1D array use the alternative routine below.
HDFException
- should be thrown for errors.public static boolean GRreadlut(long lutid, java.lang.Object theData) throws HDFException
lutid
- IN: the palette identifier returned by GRgetlutidtheData
- OUT: Object, palette data, an Java arrayNote: reads the data as bytes and converts to the Java array.
HDFException
- should be thrown for errors.public static boolean GRattrinfo(long id, int index, java.lang.String[] name, int[] argv) throws HDFException
id
- IN: the GR identifier returned by GRstartindex
- IN: the index of the attributename
- OUT: String[1], the name of the attributeargv
- OUT: int[2], the type and length of the
attributeHDFException
- should be thrown for errors.public static boolean GRgetattr(long id, int index, byte[] data) throws HDFException
id
- IN: the GR identifier returned by GRstartindex
- IN: index of the attribute for infodata
- OUT: byte[], attribute data, in bytesNOTE: to read into a Java 1D array use the alternative routine below.
HDFException
- should be thrown for errors.public static boolean GRgetattr(long id, int index, java.lang.Object theData) throws HDFException
id
- IN: the GR identifier returned by GRstartindex
- IN: index of the attribute for infotheData
- OUT: Object, attribute data, an Java arrayNote: reads the data as bytes and converts to the Java array.
HDFException
- should be thrown for errors.public static int GRfindattr(long id, java.lang.String name) throws HDFException
HDFException
public static int GRcreate(long gr_id, java.lang.String name, int ncomp, long data_type, int interlace_mode, int[] dim_sizes) throws HDFException
HDFException
public static short GRluttoref(long pal_id) throws HDFException
HDFException
public static boolean GRsetattr(long gr_id, java.lang.String attr_name, long data_type, int count, java.lang.String values) throws HDFException
gr_id
- IN: the GR identifier returned by GRstartattr_name
- IN: the name of the attributedata_type
- IN: the number type of the data (should
be DFNT_CHAR)count
- IN: the length the data (lenght of 'values')values
- IN: the the attribute to write -- A StringHDFException
- should be thrown for errors.
NOTE:This routine writes a attribute that is a String. Alternative methods write data of other types.
public static boolean GRsetattr(long gr_id, java.lang.String attr_name, long data_type, int count, byte[] values) throws HDFException
gr_id
- IN: the GR identifier returned by GRstartattr_name
- IN: the name of the attributedata_type
- IN: the number type of the datacount
- IN: the length the data (lenght of 'values')values
- IN: the the attribute to write -- in an
array of bytesHDFException
- 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.
public static boolean GRsetattr(long gr_id, java.lang.String attr_name, long data_type, int count, java.lang.Object theData) throws HDFException
gr_id
- IN: the GR identifier returned by GRstartattr_name
- IN: the name of the attributedata_type
- IN: the number type of the datacount
- IN: the length the data (lenght of 'values')theData
- IN: Object -- the value to be written,
a Java array of numbers.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.
public static boolean GRsetchunk(long sdsid, HDFChunkInfo chunk_def, int flags) throws HDFException
sdsid
- IN: the SD identifier returned by SDselectchunk_def
- IN: HDFChunkInfo, the chunking infoflags
- IN: the type of chunkingHDFException
- should be thrown for errors.
NOTE:The chunking algorithm-specific information is passed in an appropriate sub-class of HDFChunkInfo.
public static int GRsetchunkcache(long sdsid, int maxcache, int flags) throws HDFException
HDFException
public static boolean GRsetcompress(long ri_id, int comp_type, HDFCompInfo c_info) throws HDFException
ri_id
- IN: the GR identifier returned by GRstartcomp_type
- IN: the type of compressionc_info
- IN: HDFCompInfo, the compression infoHDFException
- should be thrown for errors.
NOTE:The compression algorithm specific information is passed in an appropriate sub-class of HDFCompInfo.
public static boolean GRgetcompress(long ri_id, HDFCompInfo c_info) throws HDFException
HDFException
public static boolean GRgetcompinfo(long ri_id, HDFCompInfo c_info) throws HDFException
HDFException
public static boolean GRsetexternalfile(long ri_id, java.lang.String filename, int offset) throws HDFException
HDFException
public static boolean GRwriteimage(long grid, int[] start, int[] stride, int[] edge, byte[] data) throws HDFException
grid
- IN: the GR interface id, returned by GRstartstart
- IN: int[2], startstride
- 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], countdata
- IN: byte[], data to be writtenHDFException
- should be thrown for errors.
NOTE: to write from a Java 2D array use the alternative routine below.
public static boolean GRwriteimage(long grid, int[] start, int[] stride, int[] edge, java.lang.Object theData) throws HDFException
grid
- IN: the GR interface id, returned by GRstartstart
- IN: int[2], startstride
- 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], counttheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.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.
public static boolean GRwritelut(long pal_id, int ncomp, int data_type, int interlace, int num_entries, byte[] pal_data) throws HDFException
pal_id
- IN: the palette identifier returned by GRgetlutidncomp
- IN: int, number of componentsdata_type
- IN: int, number typeinterlace
- IN: int, interlacenum_entries
- IN: int, number of entriespal_data
- IN: byte[], palette data to be written--as bytesHDFException
- should be thrown for errors.
NOTE: to write from a Java array of numbers use the alternative routine below.
public static boolean GRwritelut(long pal_id, int ncomp, int data_type, int interlace, int num_entries, java.lang.Object theData) throws HDFException
pal_id
- IN: the palette identifier returned by GRgetlutidncomp
- IN: int, number of componentsdata_type
- IN: int, number typeinterlace
- IN: int, interlacenum_entries
- IN: int, number of entriestheData
- IN: Object, palette data to be written, any
number type.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.
public static boolean GRreadchunk(long sdsid, int[] origin, byte[] theData) throws HDFException
sdsid
- IN: the GR interface id, returned by SDselectorigin
- IN: int[], origintheData
- OUT: byte[], the data in an array of bytesHDFException
- should be thrown for errors.
NOTE: to read into a Java array use the alternative routine below.
public static boolean GRreadchunk(long grid, int[] origin, java.lang.Object theData) throws HDFException
grid
- IN: the GR interface id, returned by SDselectorigin
- IN: int[], origintheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.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.
public static boolean HDFclose(long file_id) throws HDFException
HDFException
public static long HDFopen(java.lang.String filename, int access, short n_dds) throws HDFException
HDFException
public static short HEvalue(int level) throws HDFException
HDFException
public static java.lang.String HEstring(int error_code) throws HDFException
HDFException
public static void HEprint(java.lang.Object stream, int level) throws HDFException
HDFException
public static boolean HXsetcreatedir(java.lang.String dir) throws HDFException
HDFException
public static boolean HXsetdir(java.lang.String dir) throws HDFException
HDFException
public static long SDstart(java.lang.String filename, int accessmode) throws HDFException
HDFException
public static boolean SDend(long sdid) throws HDFException
HDFException
public static boolean SDfileinfo(long sdid, int[] argv) throws HDFException
sdid
- IN: the SD interface id, returned by SDstartargv
- OUT: int[2],
Number of datasets in the file,
Number of global attributes in the fileHDFException
- should be thrown for errors.public static long SDselect(long sdid, int index) throws HDFException
HDFException
public static int SDnametoindex(long sdid, java.lang.String name) throws HDFException
HDFException
public static boolean SDgetinfo(long sdsid, java.lang.String[] name, int[] dimsizes, int[] args) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectname
- OUT: String[1], the name of the datasetargs
- 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 datasetdimsizes
- OUT: int[(rank)], sizes of dimensionsNOTE: the parameters for the Java interface are not in the same order as the C interface.
HDFException
- should be thrown for errors.public static boolean SDcheckempty(long sdsid, int[] emptySDS) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectemptySDS
- OUT: int[1], 1 if the SDS is empty, 0 if has dataHDFException
- should be thrown for errors.public static boolean SDreaddata(long sdsid, int[] start, int[] stride, int[] count, byte[] data) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectstart
- IN: int[], startstride
- IN: int[], stridecount
- IN: int[], countdata
- OUT: byte[], dataNOTE: to read into a Java array use the alternative routine below.
HDFException
- should be thrown for errors.public static boolean SDreaddata(long sdsid, int[] start, int[] stride, int[] count, java.lang.Object theData) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectstart
- IN: int[], startstride
- IN: int[], stridecount
- IN: int[], counttheData
- OUT: Object, a Java array of appropriate
type, dimensions, and size.Note: reads the data as bytes and converts to the Java array.
HDFException
- should be thrown for errors.public static boolean SDreaddata_short(long sdsid, int[] start, int[] stride, int[] count, short[] theData) throws HDFException
HDFException
public static boolean SDreaddata_int(long sdsid, int[] start, int[] stride, int[] count, int[] theData) throws HDFException
HDFException
public static boolean SDreaddata_long(long sdsid, int[] start, int[] stride, int[] count, long[] theData) throws HDFException
HDFException
public static boolean SDreaddata_float(long sdsid, int[] start, int[] stride, int[] count, float[] theData) throws HDFException
HDFException
public static boolean SDreaddata_double(long sdsid, int[] start, int[] stride, int[] count, double[] theData) throws HDFException
HDFException
public static boolean SDendaccess(long sdsid) throws HDFException
HDFException
public static long SDgetdimid(long sdsid, int index) throws HDFException
HDFException
public static boolean SDdiminfo(long dimid, java.lang.String[] name, int[] argv) throws HDFException
dimid
- IN: the dimension id, returned by SDgetdimidname
- OUT: String[1], the dimension nameargv
- OUT: int[3], size of the name string,
number type of data in the array, # attributes for the dimensionHDFException
- should be thrown for errors.public static int SDidtoref(long sdsid) throws HDFException
HDFException
public static int SDreftoindex(long sdid, int ref) throws HDFException
HDFException
public static boolean SDattrinfo(long id, int index, java.lang.String[] name, int[] argv) throws HDFException
id
- IN: id of a file, SDS, or dimensionindex
- IN: index of the attributename
- OUT: String[1], the name of the attributeargv
- OUT: int[2], number type of the attribute,
number of values in the attributeHDFException
- should be thrown for errors.public static boolean SDreadattr(long id, int index, byte[] data) throws HDFException
id
- IN: id of a file, SDS, or dimensionindex
- IN: index of the attributedata
- OUT: byte[], dataNOTE: to read into a Java array use the alternative routine below.
HDFException
- should be thrown for errors.public static boolean SDreadattr(long id, int index, java.lang.Object theData) throws HDFException
id
- IN: id of a file, SDS, or dimensionindex
- IN: index of the attributetheData
- OUT: Object, a Java array of appropriate
type, dimensions, and size.Note: reads the data as bytes and converts to the Java array.
HDFException
- should be thrown for errors.public static long SDfindattr(long id, java.lang.String name) throws HDFException
HDFException
public static boolean SDiscoordvar(long sdsid) throws HDFException
HDFException
public static boolean SDgetcal(long sdsid, double[] argv, int[] NT) throws HDFException
sdsid
- IN: id of the SDS as returned by SDselectargv
- OUT: double[4], calibration information:
calibration factor
calibration error
offset
offset errorNT
- OUT: int[1], number type of uncalibrated dataHDFException
- should be thrown for errors.public static boolean SDgetdatastrs(long sdsid, java.lang.String[] strings, int len) throws HDFException
sdsid
- IN: id of the SDS as returned by SDselectstrings
- OUT: String[4], data information strings:
label
unit
print format
coordinate systemlen
- IN: int, max len of string (not needed by
Java -- the HDFLibrary interface will handle this)HDFException
- should be thrown for errors.public static boolean SDgetdimstrs(long dimid, java.lang.String[] args, int len) throws HDFException
dimid
- IN: id of the SDS as returned by SDselectargs
- OUT: String[3], data information strings:
label
unit
print formatlen
- IN: int, max len of string (not needed by
Java -- the HDFLibrary interface will handle this)HDFException
- should be thrown for errors.public static boolean SDgetdimscale(long dimid, byte[] data) throws HDFException
dimid
- IN: id of a dimension as returned by SDgetdimiddata
- OUT: byte[], dataNOTE: to read into a Java array use the alternative routine below.
HDFException
- should be thrown for errors.public static boolean SDgetdimscale(long dimid, java.lang.Object theData) throws HDFException
dimid
- IN: id of a dimension as returned by SDgetdimidtheData
- OUT: Object, a Java array of appropriate
type and size.Note: reads the data as bytes and converts to the Java array.
HDFException
- should be thrown for errors.public static boolean SDgetfillvalue(long sdsid, byte[] fillValue) throws HDFException
sdsid
- IN: id of the SDS as returned by SDselectfillValue
- OUT: byte[], dataNOTE: to read into a Java variable use the alternative routine below.
HDFException
- should be thrown for errors.public static boolean SDgetfillvalue(long sdsid, java.lang.Object[] theFillValue) throws HDFException
sdsid
- IN: id of the SDS as returned by SDselecttheFillValue
- OUT: Object[1], one object of
appropriate typeNote: the routine calls SDgetinfo to determine the correct type, reads the data as bytes, and converts to the appropriate Java object.
HDFException
- should be thrown for errors.public static boolean SDgetrange(long sdsid, byte[] max, byte[] min) throws HDFException
sdsid
- IN: id of the SDS as returned by SDselectmax
- OUT: byte[], max value, as bytesmin
- OUT: byte[], min value, as bytesNOTE: to read into Java doubles, use the alternative routine below.
HDFException
- should be thrown for errors.public static boolean SDgetrange(long sdsid, double[] maxmin) throws HDFException
sdsid
- IN: id of the SDS as returned by SDselectmaxmin
- OUT: double[2], the max and min values
converted to doublesNote: the routine calls SDgetinfo to determine the correct type, reads the data as bytes, and converts to the double.
HDFException
- should be thrown for errors.public static long SDcreate(long sd_id, java.lang.String name, long number_type, int rank, int[] dimsizes) throws HDFException
HDFException
public static boolean SDisrecord(long sdsid) throws HDFException
HDFException
public static boolean SDsetattr(long s_id, java.lang.String attr_name, long num_type, int count, byte[] values) throws HDFException
HDFException
public static boolean SDsetattr(long s_id, java.lang.String attr_name, long num_type, int count, java.lang.Object theValues) throws HDFException
HDFException
public static boolean SDsetcal(long sds_id, double cal, double cal_err, double offset, double offset_err, int number_type) throws HDFException
HDFException
public static boolean SDsetdatastrs(long sds_id, java.lang.String label, java.lang.String unit, java.lang.String format, java.lang.String coordsys) throws HDFException
HDFException
public static boolean SDsetdimname(long dim_id, java.lang.String dim_name) throws HDFException
HDFException
public static boolean SDsetdimscale(long dim_id, int count, int number_type, byte[] data) throws HDFException
dim_id
- IN: id of a dimensioncount
- IN: number of valuesnumber_type
- IN: number type of the valuesdata
- IN: byte[], the values, in an array of
bytes.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.
public static boolean SDsetdimscale(long dim_id, int count, int number_type, java.lang.Object theData) throws HDFException
dim_id
- IN: id of a dimensioncount
- IN: number of valuesnumber_type
- IN: number type of the valuestheData
- OUT: Object, a Java array of appropriate
type and size.HDFException
- should be thrown for errors.
Note: converts the Java array to an array of bytes, and writes the bytes.
public static boolean SDsetdimstrs(long dim_id, java.lang.String label, java.lang.String unit, java.lang.String format) throws HDFException
HDFException
public static boolean SDsetexternalfile(long sds_id, java.lang.String filename, int offset) throws HDFException
HDFException
public static boolean SDsetfillvalue(long sds_id, byte[] fill_val) throws HDFException
sds_id
- IN: id of a datasetfill_val
- IN: byte[], the fill values in an array of
bytes.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.
public static boolean SDsetfillvalue(long sds_id, java.lang.Object the_fill_val) throws HDFException
sds_id
- IN: id of a datasetthe_fill_val
- IN: Object, a Java object of appropriate
typeHDFException
- should be thrown for errors.
Note: converts the Java array to an array of bytes, and writes the bytes.
public static boolean SDsetrange(long sdsid, byte[] max, byte[] min) throws HDFException
sdsid
- IN: id of a datasetmax
- IN: byte[], the max value in an array of bytesmin
- IN: byte[], the min value in an array of bytesHDFException
- 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.
public static boolean SDsetrange(long sdsid, java.lang.Object max, java.lang.Object min) throws HDFException
sdsid
- IN: id of a datasetmax
- IN: Object, a Java object of appropriate typemin
- IN: Object, a Java object of appropriate typeHDFException
- should be thrown for errors.
Note: converts the Java array to an array of bytes, and writes the bytes.
public static boolean SDwritedata(long sdsid, int[] start, int[] stride, int[] count, byte[] data) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectstart
- IN: int[], startstride
- IN: int[], stridecount
- IN: int[], countdata
- IN: byte[], data in an array of bytesHDFException
- should be thrown for errors.
NOTE: to write from a Java array use the alternative routine below.
public static boolean SDwritedata(long sdsid, int[] start, int[] stride, int[] count, java.lang.Object theData) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectstart
- IN: int[], startstride
- IN: int[], stridecount
- IN: int[], counttheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors.
Note: converts to the Java array to a contiguous array of bytes and then writes to the file.
public static boolean SDsetnbitdataset(long id, int start_bit, int bit_len, int sign_ext, int fill_one) throws HDFException
HDFException
public static boolean SDsetcompress(long id, int type, HDFCompInfo cinfo) throws HDFException
id
- IN: the SD identifier returned by SDselecttype
- IN: the type of compressioncinfo
- IN: HDFCompInfo, the compression infoHDFException
- should be thrown for errors.
NOTE:The compression algorithm specific information is passed in an appropriate sub-class of HDFCompInfo.
public static boolean SDgetcompinfo(long id, HDFCompInfo cinfo) throws HDFException
SDgetcompinfo(long, HDFCompInfo)
id
- IN: the SD identifier returned by SDselectcinfo
- IN: HDFCompInfo, the compression infoHDFException
- should be thrown for errors.
NOTE:The compression algorithm specific information is passed in an appropriate sub-class of HDFCompInfo.
public static boolean SDsetaccesstype(long id, int accesstype) throws HDFException
HDFException
public static boolean SDsetblocksize(long sdsid, int block_size) throws HDFException
HDFException
public static boolean SDsetfillmode(long sdsid, boolean fill_enable) throws HDFException
sdsid
- IN: the SD idfill_enable
- IN: boolean, true calls library with
SD_FILL, false calls library with SD_NOFILLHDFException
- should be thrown for errors.public static boolean SDsetfillmode(long sdsid, int fillmode) throws HDFException
HDFException
public static boolean SDsetdimval_comp(long dimid, int comp_mode) throws HDFException
HDFException
public static boolean SDisdimval_bwcomp(long dimid) throws HDFException
HDFException
public static boolean SDsetchunk(long sdsid, HDFChunkInfo chunk_def, int flags) throws HDFException
sdsid
- IN: the SD identifier returned by SDselectchunk_def
- IN: HDFChunkInfo, the chunking infoflags
- IN: the type of chunkingHDFException
- should be thrown for errors.
NOTE:The chunking algorithm-specific information is passed in an appropriate sub-class of HDFChunkInfo.
public static boolean SDgetchunkinfo(long sdsid, HDFChunkInfo chunk_def, int[] clflags) throws HDFException
sdsid
- IN: the SD identifier returned by SDselectchunk_def
- OUT: HDFChunkInfo, the chunking infoclflags
- OUT: int[1], the type of chunkingNOTE:The chunking algorithm-specific information is passed in an appropriate sub-class of HDFChunkInfo.
HDFException
- should be thrown for errors.public static boolean SDreadchunk(long sdsid, int[] origin, byte[] theData) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectorigin
- IN: int[], origintheData
- OUT: byte[], the data in an array of bytesHDFException
- should be thrown for errors.
NOTE: to read into a Java array use the alternative routine below.
public static boolean SDreadchunk(long sdsid, int[] origin, java.lang.Object theData) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectorigin
- IN: int[], origintheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.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.
public static int SDsetchunkcache(long sdsid, int maxcache, int flags) throws HDFException
HDFException
public static boolean SDwritechunk(long sdsid, int[] origin, byte[] data) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectorigin
- IN: int[], origindata
- IN: byte[], data to be written, in an array of bytesHDFException
- should be thrown for errors.
NOTE: to write from a Java array use the alternative routine below.
public static boolean SDwritechunk(long sdsid, int[] origin, java.lang.Object theData) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectorigin
- IN: int[], origintheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors.
Note: converts to the Java array to a contiguous array of bytes and then writes to the file.
public static int VFfieldesize(long vdata_id, int field_index) throws HDFException
HDFException
public static int VFfieldisize(long vdata_id, int field_index) throws HDFException
HDFException
public static java.lang.String VFfieldname(long vdata_id, int field_index) throws HDFException
HDFException
public static int VFfieldorder(long vdata_id, int field_index) throws HDFException
HDFException
public static long VFfieldtype(long vdata_id, int field_index) throws HDFException
HDFException
public static int VFnfields(long vkey) throws HDFException
HDFException
public static int VHmakegroup(long file_id, int[] tag_array, int[] ref_array, int n_objects, java.lang.String vgroup_name, java.lang.String vgroup_class) throws HDFException
HDFException
public static int VHstoredata(long file_id, java.lang.String fieldname, byte[] buf, int n_records, int data_type, java.lang.String vdata_name, java.lang.String vdata_class) throws HDFException
file_id
- IN: the SD interface id, returned by SDselectfieldname
- IN: String, the name of the field to be filledbuf
- IN: byte[], data to be written, in an array of bytesn_records
- IN: int, the number of records being writtendata_type
- IN: int, the number type of the datavdata_name
- IN: String, the name of the Vdatavdata_class
- IN: String, the class of the VdataHDFException
- should be thrown for errors.
NOTE: to write from a Java array use the alternative routine below.
public static int VHstoredata(long file_id, java.lang.String fieldname, java.lang.Object thebuf, int n_records, int data_type, java.lang.String vdata_name, java.lang.String vdata_class) throws HDFException
file_id
- IN: the SD interface id, returned by SDselectfieldname
- IN: String, the name of the field to be filledthebuf
- IN: Object, data to be written, in a Java array
of appropriate type and sizen_records
- IN: int, the number of records being writtendata_type
- IN: int, the number type of the datavdata_name
- IN: String, the name of the Vdatavdata_class
- IN: String, the class of the VdataHDFException
- should be thrown for errors.
Note: converts to the Java array to a contiguous array of bytes and then writes to the file.
public static int VHstoredatam(long file_id, java.lang.String fieldname, byte[] buf, int n_records, int data_type, java.lang.String vdata_name, java.lang.String vdata_class, int order) throws HDFException
file_id
- IN: the SD interface id, returned by SDselectfieldname
- IN: String, the name of the field to be filledbuf
- IN: byte[], data to be written, in an array of bytesn_records
- IN: int, the number of records being writtendata_type
- IN: int, the number type of the datavdata_name
- IN: String, the name of the Vdatavdata_class
- IN: String, the class of the Vdataorder
- IN: int, the number of components per fieldHDFException
- should be thrown for errors.
NOTE: to write from a Java array use the alternative routine below.
public static int VHstoredatam(long file_id, java.lang.String fieldname, java.lang.Object buf, int n_records, int data_type, java.lang.String vdata_name, java.lang.String vdata_class, int order) throws HDFException
file_id
- IN: the SD interface id, returned by SDselectfieldname
- IN: String, the name of the field to be filledbuf
- IN: Object, data to be written, in a Java array
of appropriate type, dimension, and sizen_records
- IN: int, the number of records being writtendata_type
- IN: int, the number type of the datavdata_name
- IN: String, the name of the Vdatavdata_class
- IN: String, the class of the Vdataorder
- IN: int, the number of components per fieldHDFException
- should be thrown for errors.
Note: converts to the Java array to a contiguous array of bytes and then writes to the file.
public static int VQueryref(long vkey) throws HDFException
HDFException
public static int VQuerytag(long vkey) throws HDFException
HDFException
public static boolean Vstart(long fid) throws HDFException
HDFException
public static int Vattach(long fid, int vgroup_ref, java.lang.String access) throws HDFException
HDFException
public static void Vdetach(long vgroup_id) throws HDFException
HDFException
public static void Vend(long file_id) throws HDFException
HDFException
public static int Vgetid(long file_id, int vgroup_ref) throws HDFException
HDFException
public static void Vgetclass(long vgroup_id, java.lang.String[] hdfclassname) throws HDFException
vgroup_id
- IN: the Vgroup idhdfclassname
- OUT: String[1], the HDF class of
the vgroup.HDFException
- should be thrown for errors in the
HDF library call.public static void Vgetname(long vgroup_id, java.lang.String[] hdfname) throws HDFException
vgroup_id
- IN: the Vgroup idhdfname
- OUT: String[1], the name of
the vgroup.HDFException
- should be thrown for errors in the
HDF library call.public static boolean Visvg(long vgroup_id, int vgroup_ref) throws HDFException
HDFException
public static boolean Visvs(long vgroup_id, int vdata_ref) throws HDFException
HDFException
public static int Vgettagrefs(long vgroup_id, int[] tags, int[] refs, int arraysize) throws HDFException
vgroup_id
- IN: the Vgroup idtags
- OUT: int[arraysize], the tagsrefs
- OUT: int[arraysize], the refsarraysize
- IN: int, the number of tags/refs to
returnHDFException
- should be thrown for errors in the
HDF library call.public static boolean Vgettagref(long vgroup_id, int index, int[] tagref) throws HDFException
vgroup_id
- - IN: the Vgroup idindex
- - IN: the index of the objecttagref
- - OUT: tagref[0]=tag, tagref[1]=refHDFException
- should be thrown for errors in the
HDF library call.public static int Vntagrefs(long vgroup_id) throws HDFException
HDFException
public static boolean Vinqtagref(long vgroup_id, int tag, int ref) throws HDFException
HDFException
public static int Vlone(long fid, int[] ref_array, int buffersize) throws HDFException
fid
- IN: the file identifier returned by Hopenref_array
- OUT: int[], the refs for Vdata not part
of Vgroupsbuffersize
- IN: the max size of the ref_arrayHDFException
- should be thrown for errors in the
HDF library call.public static int Vaddtagref(long vgroup_id, int tag, int ref) throws HDFException
HDFException
public static int Vdeletetagref(long vgroup_id, int tag, int ref) throws HDFException
HDFException
public static int Vfind(long file_id, java.lang.String vgroup_name) throws HDFException
HDFException
public static int Vfindclass(long file_id, java.lang.String vgclassname) throws HDFException
HDFException
public static int Vflocate(int key, java.lang.String vgclassname) throws HDFException
HDFException
public static int Vgetnext(int key, int ref) throws HDFException
HDFException
public static boolean Vinquire(long vgroup_id, int[] n_entries, java.lang.String[] vgroup_name) throws HDFException
vgroup_id
- IN: the Vgroup idn_entries
- OUT: int[1], the number of objects in the Vgroupvgroup_name
- OUT: String[1], the name of the VgroupHDFException
- should be thrown for errors in the
HDF library call.public static int Vinsert(long vgroup_id, long v_id) throws HDFException
HDFException
public static int Vnrefs(int key, int ref) throws HDFException
HDFException
public static boolean Vsetclass(long vgroup_id, java.lang.String vgclassname) throws HDFException
HDFException
public static boolean Vsetname(long vgroup_id, java.lang.String vgname) throws HDFException
HDFException
public static boolean Vattrinfo(long id, int index, java.lang.String[] name, int[] argv) throws HDFException
id
- IN: Vgroup identifier returned by Vattachindex
- IN: the index of the attributename
- OUT: String[1], the name of the attributeargv
- 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,
,HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static long Vfindattr(long id, java.lang.String name) throws HDFException
HDFException
public static boolean Vgetattr(long id, int index, byte[] data) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the attributedata
- OUT: byte[], the data in an array of bytesHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to read into a Java array use the alternative routine below.
public static boolean Vgetattr(long id, int index, java.lang.Object theData) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the attributetheData
- OUT: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call.
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
public static int Vgetversion(long id) throws HDFException
HDFException
public static int Vnattrs(long id) throws HDFException
HDFException
public static boolean Vsetattr(long id, java.lang.String attr_name, long data_type, int count, java.lang.String values) throws HDFException
HDFException
public static boolean Vsetattr(long id, java.lang.String attr_name, long data_type, int count, byte[] data) throws HDFException
id
- IN: the Vdata idattr_name
- IN: String, the name of the attributedata_type
- IN: int, the number_type of the attributecount
- IN: the number of valuesdata
- IN: byte[], the data in an array of bytesHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to write into a Java array use the alternative routine below.
public static boolean Vsetattr(long id, java.lang.String attr_name, long data_type, int count, java.lang.Object theData) throws HDFException
id
- IN: the Vdata idattr_name
- IN: String, the name of the attributedata_type
- IN: int, the number_type of the attributecount
- IN: the number of valuestheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call.
Note: converts the data to a contiguous array of bytes and then converts writes it.
public static boolean VSQuerycount(long vdata_id, int[] n_records) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachn_records
- OUT, int[1], the number of records in the vdataHDFException
- should be thrown for errors in the
HDF library call.public static boolean VSQueryfields(long vdata_id, java.lang.String[] fields) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachfields
- OUT, String[1], the names of the fieldsHDFException
- should be thrown for errors in the
HDF library call.public static boolean VSQueryinterlace(long vdata_id, int[] interlace) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachinterlace
- OUT, int[1], the interlace mode,HDFException
- should be thrown for errors in the
HDF library call.public static boolean VSQueryname(long vdata_id, java.lang.String[] vdata_name) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachvdata_name
- OUT, String[1], the name of the vdataHDFException
- should be thrown for errors in the
HDF library call.public static int VSQueryref(long vdata_id) throws HDFException
HDFException
public static int VSQuerytag(long vdata_id) throws HDFException
HDFException
public static boolean VSQueryvsize(long vdata_id, int[] vdata_size) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachvdata_size
- OUT, int[1], the size of the vdataHDFException
- should be thrown for errors in the
HDF library call.public static int VSattach(long fid, int vdata_ref, java.lang.String access) throws HDFException
HDFException
public static void VSdetach(long vdata_id) throws HDFException
HDFException
public static long VSgetid(long file_id, int vdata_ref) throws HDFException
HDFException
public static void VSgetclass(long vdata_id, java.lang.String[] hdfclassname) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachhdfclassname
- OUT, String[1], the class name of the vdataHDFException
- should be thrown for errors in the
HDF library call.public static void VSgetname(long vdata_id, java.lang.String[] hdfname) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachhdfname
- OUT, String[1], the name of the vdataHDFException
- should be thrown for errors in the
HDF library call.public static int VSelts(long vdata_id) throws HDFException
HDFException
public static boolean VSfdefine(long vdata_id, java.lang.String fieldname, int numbertype, int order) throws HDFException
HDFException
public static boolean VSfexist(long vdata_id, java.lang.String fields) throws HDFException
HDFException
public static int VSfind(long file_id, java.lang.String vdataname) throws HDFException
HDFException
public static int VSsetblocksize(long vdata_id, int blocksize) throws HDFException
HDFException
public static int VSsetnumblocks(long vdata_id, int numblocks) throws HDFException
HDFException
public static int VSgetfields(long vdata_id, java.lang.String[] fieldname) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachfieldname
- OUT, String[1], the names of the fieldsHDFException
- should be thrown for errors in the
HDF library call.public static int VSgetinterlace(long vdata_id) throws HDFException
HDFException
public static boolean VSinquire(long vdata_id, int[] iargs, java.lang.String[] sargs) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachiargs
- OUT, int[3], n_records, interlace, vdata_sizesargs
- OUT, String[2], names the dataset, fieldsNOTE: the parameters for the Java interface are not in the same order as the C interface.
HDFException
- should be thrown for errors in the
HDF library call.public static boolean VSinquire(long vdata_id, int[] iargs) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachiargs
- OUT, int[2], block_size, num_blocksNOTE: the parameters for the Java interface are not in the same order as the C interface.
HDFException
- should be thrown for errors in the
HDF library call.public static int VSlone(long fid, int[] ref_array, int buffersize) throws HDFException
fid
- IN, File identifier returned by Hopenref_array
- OUT, int[?], the refsbuffersize
- IN, int, the max number of refs to
return.HDFException
- should be thrown for errors in the
HDF library call.public static int VSread(long vdata_id, byte[] databuf, int nrecord, int interlace) throws HDFException
vdata_id
- IN: the Vdata iddatabuf
- OUT: byte[], the data in an array of bytesnrecord
- IN: int, number of recordsinterlace
- IN: int, interlaceHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to read into a Java array use the alternative routine below.
public static int VSread(long vdata_id, java.lang.Object theData, int nrecord, int interlace) throws HDFException
vdata_id
- IN: the Vdata idtheData
- OUT: Object, a Java array of appropriate
type, dimensions, and size.nrecord
- IN: int, number of recordsinterlace
- IN: int, interlaceHDFException
- should be thrown for errors in the
HDF library call.
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
public static int VSseek(long vdata_id, int record) throws HDFException
HDFException
public static boolean VSsetfields(long vdata_id, java.lang.String fields) throws HDFException
HDFException
public static boolean VSsetinterlace(long vdata_id, int interlace) throws HDFException
HDFException
public static int VSsizeof(long vdata_id, java.lang.String fields) throws HDFException
HDFException
public static boolean VSappendable(int vkey, int block_size) throws HDFException
HDFException
public static int VSfindclass(long file_id, java.lang.String vgclass) throws HDFException
HDFException
public static int VSgetversion(int vkey) throws HDFException
HDFException
public static void VSsetclass(long vdata_id, java.lang.String vdata_class) throws HDFException
HDFException
public static boolean VSsetexternalfile(int vkey, java.lang.String filename, int offset) throws HDFException
HDFException
public static void VSsetname(long vdata_id, java.lang.String vdata_name) throws HDFException
HDFException
public static int VSwrite(long vdata_id, byte[] databuf, int n_records, int interlace) throws HDFException
vdata_id
- IN: the Vdata iddatabuf
- IN: byte[], the data in an array of bytesn_records
- IN: int, number of recordsinterlace
- IN: int, interlaceHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to write a Java array use the alternative routine below.
public static int VSwrite(long vdata_id, java.lang.Object databuf, int n_records, int interlace) throws HDFException
vdata_id
- IN: the Vdata iddatabuf
- IN: Object, a Java array of appropriate
type, dimensions, and size.n_records
- IN: int, number of recordsinterlace
- IN: int, interlaceHDFException
- should be thrown for errors in the
HDF library call.
Important Note: 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.
Note: converts the data into a contiguous array of bytes and then writes it
public static boolean VSattrinfo(long id, int index, int attr_index, java.lang.String[] name, int[] argv) throws HDFException
id
- IN: the Vdata idindex
- IN: int, the index of the attributeattr_index
- IN: int, the index of the attributename
- OUT: String[1], the name of the attributeargv
- 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,HDFException
- should be thrown for errors in the
HDF library call.public static int VSfindex(long id, java.lang.String name, int[] findex) throws HDFException
id
- IN: the Vdata idname
- IN: the name of the attributefindex
- IN: int[1], the index of the attributeHDFException
- should be thrown for errors in the
HDF library call.public static int VSfindattr(long id, int index, java.lang.String name) throws HDFException
HDFException
public static int VSfnattrs(long id, int fnattrs) throws HDFException
HDFException
public static boolean VSgetattr(long id, int index, int attr_index, byte[] data) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the vdataattr_index
- IN: the index of the attributedata
- OUT: byte[], the data in an array of bytesHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to read into a Java array use the alternative routine below.
public static boolean VSgetattr(long id, int index, int attr_index, java.lang.Object theData) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the vdataattr_index
- IN: the index of the attributetheData
- OUT: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call.
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
public static boolean VSisattr(long id) throws HDFException
HDFException
public static int VSnattrs(long id) throws HDFException
HDFException
public static boolean VSsetattr(long id, int index, java.lang.String attr_name, long data_type, int count, java.lang.String values) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the vdataattr_name
- IN: String, the name of the attributedata_type
- IN: int, the number_type of the attributecount
- IN: the number of valuesvalues
- IN: String, the data in an StringHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to write from a Java array use the alternative routine below.
public static boolean VSsetattr(long id, int index, java.lang.String attr_name, long data_type, int count, byte[] values) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the vdataattr_name
- IN: String, the name of the attributedata_type
- IN: int, the number_type of the attributecount
- IN: the number of valuesvalues
- IN: byte[], the data in an array of bytesHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to write into a Java array use the alternative routine below.
public static boolean VSsetattr(long id, int index, java.lang.String attr_name, long data_type, int count, java.lang.Object theData) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the vdataattr_name
- IN: String, the name of the attributedata_type
- IN: int, the number_type of the attributecount
- IN: the number of valuestheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call.
Note: converts the data to a contiguous array of bytes and then converts writes it.
public static boolean DF24getdims(java.lang.String fileName, int[] argv) throws HDFException
fileName
- IN: String, the fileargv
- OUT: int[3], the width, height, and interlace modeHDFException
- should be thrown for errors in the
HDF library call.public static boolean DF24reqil(int il) throws HDFException
HDFException
public static boolean DF24getimage(java.lang.String fileName, byte[] imagedata, int width, int height) throws HDFException
fileName
- IN: String, the fileimagedata
- OUT: byte[], the image, in an array of
byteswidth
- IN: int, the width of the imageheight
- IN: int, the height of the imageHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to read into a Java array use the alternative routine below.
public static boolean DF24getimage(java.lang.String fileName, java.lang.Object theImagedata, int width, int height) throws HDFException
fileName
- IN: String, the filetheImagedata
- OUT: Object, the image, in a java
array of appropriate size and typewidth
- IN: int, the width of the imageheight
- IN: int, the height of the imageHDFException
- should be thrown for errors in the
HDF library call.
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
public static short DF24lastref() throws HDFException
HDFException
public static boolean DF24restart() throws HDFException
HDFException
public static boolean DF24readref(java.lang.String filename, int ref) throws HDFException
HDFException
public static int DF24nimages(java.lang.String fileName) throws HDFException
HDFException
public static boolean DF24addimage(java.lang.String filename, byte[] image, int width, int height) throws HDFException
filename
- IN: String, the fileimage
- IN: byte[], the image, in an array of
byteswidth
- IN: int, the width of the imageheight
- IN: int, the height of the imageHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to write from a Java array use the alternative routine below.
public static boolean DF24addimage(java.lang.String filename, java.lang.Object theImage, int width, int height) throws HDFException
filename
- IN: String, the filetheImage
- IN: Object, the image, in a java
array of appropriate size and typewidth
- IN: int, the width of the imageheight
- IN: int, the height of the imageHDFException
- should be thrown for errors in the
HDF library call.
Note: converts the data into a contiguous array of bytes and then writes it to the file
public static boolean DF24putimage(java.lang.String filename, byte[] image, int width, int height) throws HDFException
filename
- IN: String, the fileimage
- IN: byte[], the image, in an array of
byteswidth
- IN: int, the width of the imageheight
- IN: int, the height of the imageHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to write from a Java array use the alternative routine below.
public static boolean DF24putimage(java.lang.String filename, java.lang.Object theImage, int width, int height) throws HDFException
filename
- IN: String, the filetheImage
- IN: Object, the image, in a java
array of appropriate size and typewidth
- IN: int, the width of the imageheight
- IN: int, the height of the imageHDFException
- should be thrown for errors in the
HDF library call.
Note: converts the data into a contiguous array of bytes and then writes it to the file
public static boolean DF24setcompress(int type, HDFCompInfo cinfo) throws HDFException
type
- IN: int, the type of compressioncinfo
- IN: HDFCompInfo, the compression parametersHDFException
- should be thrown for errors in the
HDF library call.public static boolean DF24setdims(int width, int height) throws HDFException
HDFException
public static boolean DF24setil(int il) throws HDFException
HDFException
public static boolean DFR8getdims(java.lang.String fileName, int[] argv, boolean[] haspalette) throws HDFException
fileName
- IN: String, the fileargv
- OUT: int[2], the width and heighthaspalette
- OUT: boolean[1], has a paletteHDFException
- should be thrown for errors in the
HDF library call.public static boolean DFR8getimage(java.lang.String fileName, byte[] imagedata, int width, int height, byte[] palette) throws HDFException
fileName
- IN: String, the fileimagedata
- OUT: byte[], the image, in an array of
byteswidth
- IN: int, the width of the imageheight
- IN: int, the height of the imagepalette
- OUT: byte[], the color look up tableHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to read into a Java array use the alternative routine below.
public static boolean DFR8getimage(java.lang.String fileName, java.lang.Object theImagedata, int width, int height, byte[] palette) throws HDFException
fileName
- IN: String, the filetheImagedata
- OUT: Object, the image, in a java
array of appropriate size and typewidth
- IN: int, the width of the imageheight
- IN: int, the height of the imagepalette
- OUT: byte[], the color look up tableHDFException
- should be thrown for errors in the
HDF library call.
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
public static short DFR8lastref() throws HDFException
HDFException
public static boolean DFR8restart() throws HDFException
HDFException
public static boolean DFR8readref(java.lang.String filename, int ref) throws HDFException
HDFException
public static int DFR8nimages(java.lang.String fileName) throws HDFException
HDFException
public static boolean DFR8addimage(java.lang.String filename, byte[] image, int width, int height, short compress) throws HDFException
filename
- IN: String, the fileimage
- IN: byte[], the image, in an array of
byteswidth
- IN: int, the width of the imageheight
- IN: int, the height of the imagecompress
- IN: short, the type of compressionHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to write from a Java array use the alternative routine below.
public static boolean DFR8addimage(java.lang.String filename, java.lang.Object theImage, int width, int height, short compress) throws HDFException
filename
- IN: String, the filetheImage
- IN: Object, the image, in a java
array of appropriate size and typewidth
- IN: int, the width of the imageheight
- IN: int, the height of the imagecompress
- IN: short, the type of compressionHDFException
- should be thrown for errors in the
HDF library call.
Note: converts the data into a contiguous array of bytes and then writes it to the file
public static boolean DFR8putimage(java.lang.String filename, byte[] image, int width, int height, short compress) throws HDFException
filename
- IN: String, the fileimage
- IN: byte[], the image, in an array of
byteswidth
- IN: int, the width of the imageheight
- IN: int, the height of the imagecompress
- IN: short, the type of compressionHDFException
- should be thrown for errors in the
HDF library call.
NOTE: to write from a Java array use the alternative routine below.
public static boolean DFR8putimage(java.lang.String filename, java.lang.Object theImage, int width, int height, short compress) throws HDFException
filename
- IN: String, the filetheImage
- IN: Object, the image, in a java
array of appropriate size and typewidth
- IN: int, the width of the imageheight
- IN: int, the height of the imagecompress
- IN: short, the type of compressionHDFException
- should be thrown for errors in the
HDF library call.
Note: converts the data into a contiguous array of bytes and then writes it to the file
public static boolean DFR8setcompress(int type, HDFCompInfo cinfo) throws HDFException
type
- IN: int, the type of compressioncinfo
- IN: HDFCompInfo, the compression parametersHDFException
- should be thrown for errors in the
HDF library call.public static boolean DFR8getpalref(short[] palref) throws HDFException
palref
- OUT: short[1], the HDF ref of the paletteHDFException
- should be thrown for errors in the
HDF library call.public static boolean DFR8setpalette(byte[] palette) throws HDFException
HDFException
public static boolean DFR8writeref(java.lang.String filename, short ref) throws HDFException
HDFException
public static int HCget_config_info(int coder_type) throws HDFException
coder_type
- comp_coder_t enum for determining which type of encoding is being doneHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public class HDFLibraryException extends HDFException
The class HDFException returns errors raised by the HDF library.
In principle, this includes any and all errors possible from the HDF library. However, most error conditions are not yet detected in this version of the Java interface. This will be added in future releases. The only HDF library error currently raised are errors in Hopen, such as ``file not found''.
HDFerror, HDFExceptionMessage, HDFMessage, msg, OutOfMemoryMessage
Constructor and Description |
---|
HDFLibraryException() |
HDFLibraryException(int err) |
HDFLibraryException(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
void |
printStackTrace()
Prints this
HDFLibraryException , the HDF Library error
stack, and and the Java stack trace to the standard error stream. |
void |
printStackTrace(java.io.File f)
Prints this
HDFLibraryException the HDF Library error
stack, and and the Java stack trace to the specified print stream. |
public HDFLibraryException()
public HDFLibraryException(java.lang.String s)
public HDFLibraryException(int err)
public java.lang.String getMessage()
getMessage
in class HDFException
public void printStackTrace()
HDFLibraryException
, the HDF Library error
stack, and and the Java stack trace to the standard error stream.printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.File f)
HDFLibraryException
the HDF Library error
stack, and and the Java stack trace to the specified print stream.f
- the file print stream.public class HDFNativeData
extends java.lang.Object
Constructor and Description |
---|
HDFNativeData() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
byteToByte(byte data) |
static double[] |
byteToDouble(byte[] data) |
static double |
byteToDouble(byte[] data,
int start) |
static double[] |
byteToDouble(int start,
int len,
byte[] data) |
static float[] |
byteToFloat(byte[] data) |
static float |
byteToFloat(byte[] data,
int start) |
static float[] |
byteToFloat(int start,
int len,
byte[] data) |
static int[] |
byteToInt(byte[] data) |
static int |
byteToInt(byte[] data,
int start) |
static int[] |
byteToInt(int start,
int len,
byte[] data) |
static long[] |
byteToLong(byte[] data) |
static long |
byteToLong(byte[] data,
int start) |
static long[] |
byteToLong(int start,
int len,
byte[] data) |
java.lang.Object |
byteToNumber(byte[] barray,
java.lang.Object obj) |
static short[] |
byteToShort(byte[] data) |
static short |
byteToShort(byte[] data,
int start) |
static short[] |
byteToShort(int start,
int len,
byte[] data) |
static java.lang.Object |
defineDataObject(int dataType,
int datasize)
Allocate a 1D array large enough to hold a multidimensional
array of 'datasize' elements of 'dataType' numbers.
|
static byte[] |
doubleToByte(double data) |
static byte[] |
doubleToByte(int start,
int len,
double[] data) |
static byte[] |
floatToByte(float data) |
static byte[] |
floatToByte(int start,
int len,
float[] data) |
static byte[] |
intToByte(int data) |
static byte[] |
intToByte(int start,
int len,
int[] data) |
static byte[] |
longToByte(int start,
int len,
long[] data) |
static byte[] |
longToByte(long data) |
static byte[] |
shortToByte(int start,
int len,
short[] data) |
static byte[] |
shortToByte(short data) |
public static int[] byteToInt(byte[] data)
public static float[] byteToFloat(byte[] data)
public static short[] byteToShort(byte[] data)
public static long[] byteToLong(byte[] data)
public static double[] byteToDouble(byte[] data)
public static int[] byteToInt(int start, int len, byte[] data)
public static int byteToInt(byte[] data, int start)
public static short[] byteToShort(int start, int len, byte[] data)
public static short byteToShort(byte[] data, int start)
public static float[] byteToFloat(int start, int len, byte[] data)
public static float byteToFloat(byte[] data, int start)
public static long[] byteToLong(int start, int len, byte[] data)
public static long byteToLong(byte[] data, int start)
public static double[] byteToDouble(int start, int len, byte[] data)
public static double byteToDouble(byte[] data, int start)
public static byte[] intToByte(int start, int len, int[] data)
public static byte[] shortToByte(int start, int len, short[] data)
public static byte[] floatToByte(int start, int len, float[] data)
public static byte[] longToByte(int start, int len, long[] data)
public static byte[] doubleToByte(int start, int len, double[] data)
public static byte[] byteToByte(byte data)
public static byte[] intToByte(int data)
public static byte[] shortToByte(short data)
public static byte[] floatToByte(float data)
public static byte[] longToByte(long data)
public static byte[] doubleToByte(double data)
public java.lang.Object byteToNumber(byte[] barray, java.lang.Object obj) throws HDFException
HDFException
public static java.lang.Object defineDataObject(int dataType, int datasize)
dataType
- the type of the iamge datadatasize
- the size of the image data arraypublic class HDFNBITChunkInfo extends HDFChunkInfo
This class is a container for the parameters to the HDF NBIT compressed chunked class.
In this case, the information is the start bit, len, sign extension and fill.
Modifier and Type | Field and Description |
---|---|
int |
bit_len |
int[] |
chunk_lengths |
int |
fill_one |
int |
sign_ext |
int |
start_bit |
cinfo, comp_type, ctype
Constructor and Description |
---|
HDFNBITChunkInfo() |
HDFNBITChunkInfo(int[] cl,
int sb,
int bl,
int se,
int fo) |
public class HDFNBITCompInfo extends HDFNewCompInfo
This class is a container for the parameters to the HDF ``NBIT'' compression class.
In this case, the information needed is the number type, the sign extension, the fill bit, the start bit, and the number of bits to store.
Modifier and Type | Field and Description |
---|---|
int |
bit_len |
int |
fill_one |
int |
nt |
int |
sign_ext |
int |
start_bit |
ctype
Constructor and Description |
---|
HDFNBITCompInfo() |
HDFNBITCompInfo(int Nt,
int Sign_ext,
int Fill_one,
int Start_bit,
int Bit_len) |
public class HDFNewCompInfo extends HDFCompInfo
This class is a generic container for the parameters to the HDF compressed classes, with the ``new'' encoding.
Compression parameters are expressed as instances of sub-classes of this type.
Modifier and Type | Field and Description |
---|---|
int |
ctype |
Constructor and Description |
---|
HDFNewCompInfo() |
public class HDFNotImplementedException extends HDFJavaException
HDFNotImplementedException indicates a function that is part of the HDF API, but which cannot or will not be implemented for Java.
For instance, C routines which take Unix FILE objects as parameters are not appropriate for the Java interface and will not be implemented. These routines will raise an HDFNotImplementedException.
HDFerror, HDFExceptionMessage, HDFMessage, OutOfMemoryMessage
Constructor and Description |
---|
HDFNotImplementedException() |
HDFNotImplementedException(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
public HDFNotImplementedException()
public HDFNotImplementedException(java.lang.String s)
public java.lang.String getMessage()
getMessage
in class HDFJavaException
public class HDFOldCompInfo extends HDFCompInfo
This class is a generic container for the parameters to the HDF compressed classes, with the ``ole'' encoding.
Compression parameters are expressed as instances of sub-classes of this type.
Modifier and Type | Field and Description |
---|---|
int |
ctype |
Constructor and Description |
---|
HDFOldCompInfo() |
public class HDFOldRLECompInfo extends HDFOldCompInfo
This class is a generic container for the parameters to the HDF RLE compressed classes, with the ``old'' type encoding.
In this case, there is no auxilliary information.
ctype
Constructor and Description |
---|
HDFOldRLECompInfo() |
public class HDFRLECompInfo extends HDFNewCompInfo
This class is a generic container for the parameters to the HDF RLE compressed classes, with the ``new'' type encoding.
In this case, there is no auxilliary information.
ctype
Constructor and Description |
---|
HDFRLECompInfo() |
public class HDFSKPHUFFCompInfo extends HDFNewCompInfo
This class is a generic container for the parameters to the HDF ``Skipping Huffman'' compression classes.
In this case, the information is the skip size
Modifier and Type | Field and Description |
---|---|
int |
skp_size |
ctype
Constructor and Description |
---|
HDFSKPHUFFCompInfo() |
public class HDFSZIPCompInfo extends HDFNewCompInfo
This class is a container for the parameters to the HDF SZIP compression algorithm.
In this case, the only parameter is the ``level'' of deflation.
Modifier and Type | Field and Description |
---|---|
int |
bits_per_pixel |
int |
options_mask |
int |
pixels |
int |
pixels_per_block |
int |
pixels_per_scanline |
ctype
Constructor and Description |
---|
HDFSZIPCompInfo() |
HDFSZIPCompInfo(int bits_per_pixel_in,
int options_mask_in,
int pixels_in,
int pixels_per_block_in,
int pixels_per_scanline_in) |
Class | Description |
---|---|
HDFArray |
This is a class for handling multidimensional arrays for
HDF.
|
HDFChunkInfo |
This is a generic class to represent the HDF chunk_info
union, which contains parameters for the different
chunking schemes.
|
HDFCompInfo |
This class is a container for the parameters to the HDF
comp_info union.
|
HDFConstants |
This interface defines the values of constants defined
by the HDF 4.2 API.
|
HDFDeflateCompInfo |
This class is a container for the parameters to the HDF
DEFLATION compression algorithm.
|
HDFIMCOMPCompInfo |
This class is a container for the parameters to the HDF
``Image compression'' compression class.
|
HDFJPEGCompInfo |
This class is a container for the parameters to the HDF
JPEG compression class.
|
HDFLibrary |
This is the Java interface for the HDF 4.2 library.
|
HDFNativeData | |
HDFNBITChunkInfo |
This class is a container for the parameters to the HDF
NBIT compressed chunked class.
|
HDFNBITCompInfo |
This class is a container for the parameters to the HDF
``NBIT'' compression class.
|
HDFNewCompInfo |
This class is a generic container for the parameters to the HDF
compressed classes, with the ``new'' encoding.
|
HDFOldCompInfo |
This class is a generic container for the parameters to the HDF
compressed classes, with the ``ole'' encoding.
|
HDFOldRLECompInfo |
This class is a generic container for the parameters to the HDF
RLE compressed classes, with the ``old'' type encoding.
|
HDFRLECompInfo |
This class is a generic container for the parameters to the HDF
RLE compressed classes, with the ``new'' type encoding.
|
HDFSKPHUFFCompInfo |
This class is a generic container for the parameters to the HDF
``Skipping Huffman'' compression classes.
|
HDFSZIPCompInfo |
This class is a container for the parameters to the HDF
SZIP compression algorithm.
|
Exception | Description |
---|---|
HDFException |
The class HDFException returns errors from the HDF
library.
|
HDFJavaException |
The class HDFJavaException returns errors from the Java
wrapper of theHDF library.
|
HDFLibraryException |
The class HDFException returns errors raised by the HDF
library.
|
HDFNotImplementedException |
HDFNotImplementedException indicates a function that is part
of the HDF API, but which cannot or will not be implemented
for Java.
|
Class and Description |
---|
HDFChunkInfo
This is a generic class to represent the HDF chunk_info
union, which contains parameters for the different
chunking schemes.
|
HDFCompInfo
This class is a container for the parameters to the HDF
comp_info union.
|
HDFException
The class HDFException returns errors from the HDF
library.
|
HDFJavaException
The class HDFJavaException returns errors from the Java
wrapper of theHDF library.
|
HDFNewCompInfo
This class is a generic container for the parameters to the HDF
compressed classes, with the ``new'' encoding.
|
HDFOldCompInfo
This class is a generic container for the parameters to the HDF
compressed classes, with the ``ole'' encoding.
|
Modifier and Type | Class and Description |
---|---|
class |
HDFNBITChunkInfo
This class is a container for the parameters to the HDF
NBIT compressed chunked class.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
HDFLibrary.GRgetchunkinfo(long sdsid,
HDFChunkInfo chunk_def,
int[] flag) |
static boolean |
HDFLibrary.GRsetchunk(long sdsid,
HDFChunkInfo chunk_def,
int flags) |
static boolean |
HDFLibrary.SDgetchunkinfo(long sdsid,
HDFChunkInfo chunk_def,
int[] clflags) |
static boolean |
HDFLibrary.SDsetchunk(long sdsid,
HDFChunkInfo chunk_def,
int flags) |
Modifier and Type | Class and Description |
---|---|
class |
HDFDeflateCompInfo
This class is a container for the parameters to the HDF
DEFLATION compression algorithm.
|
class |
HDFIMCOMPCompInfo
This class is a container for the parameters to the HDF
``Image compression'' compression class.
|
class |
HDFJPEGCompInfo
This class is a container for the parameters to the HDF
JPEG compression class.
|
class |
HDFNBITCompInfo
This class is a container for the parameters to the HDF
``NBIT'' compression class.
|
class |
HDFNewCompInfo
This class is a generic container for the parameters to the HDF
compressed classes, with the ``new'' encoding.
|
class |
HDFOldCompInfo
This class is a generic container for the parameters to the HDF
compressed classes, with the ``ole'' encoding.
|
class |
HDFOldRLECompInfo
This class is a generic container for the parameters to the HDF
RLE compressed classes, with the ``old'' type encoding.
|
class |
HDFRLECompInfo
This class is a generic container for the parameters to the HDF
RLE compressed classes, with the ``new'' type encoding.
|
class |
HDFSKPHUFFCompInfo
This class is a generic container for the parameters to the HDF
``Skipping Huffman'' compression classes.
|
class |
HDFSZIPCompInfo
This class is a container for the parameters to the HDF
SZIP compression algorithm.
|
Modifier and Type | Field and Description |
---|---|
HDFCompInfo |
HDFChunkInfo.cinfo |
Modifier and Type | Method and Description |
---|---|
static boolean |
HDFLibrary.DF24setcompress(int type,
HDFCompInfo cinfo) |
static boolean |
HDFLibrary.DFR8setcompress(int type,
HDFCompInfo cinfo)
DFR8setcompress sets compression scheme for 8-bit image
|
static boolean |
HDFLibrary.GRgetcompinfo(long ri_id,
HDFCompInfo c_info) |
static boolean |
HDFLibrary.GRgetcompress(long ri_id,
HDFCompInfo c_info) |
static boolean |
HDFLibrary.GRsetcompress(long ri_id,
int comp_type,
HDFCompInfo c_info) |
static boolean |
HDFLibrary.SDgetcompinfo(long id,
HDFCompInfo cinfo)
Deprecated.
As of HDF 4.2.9, replaced by
HDFLibrary.SDgetcompinfo(long, HDFCompInfo) |
static boolean |
HDFLibrary.SDsetcompress(long id,
int type,
HDFCompInfo cinfo) |
Constructor and Description |
---|
HDFChunkInfo(int[] cl,
int ct,
HDFCompInfo ci) |
Modifier and Type | Class and Description |
---|---|
class |
HDFJavaException
The class HDFJavaException returns errors from the Java
wrapper of theHDF library.
|
class |
HDFLibraryException
The class HDFException returns errors raised by the HDF
library.
|
class |
HDFNotImplementedException
HDFNotImplementedException indicates a function that is part
of the HDF API, but which cannot or will not be implemented
for Java.
|
Modifier and Type | Method and Description |
---|---|
static int |
HDFLibrary.ANannlen(long ann_id) |
static int |
HDFLibrary.ANannlist(long an_id,
int anntype,
short tag,
short ref,
int[] ann_list) |
static short |
HDFLibrary.ANatype2tag(int antag) |
static int |
HDFLibrary.ANcreate(long an_id,
short tag,
short ref,
int type) |
static int |
HDFLibrary.ANcreatef(long an_id,
int type) |
static boolean |
HDFLibrary.ANend(long an_id) |
static boolean |
HDFLibrary.ANendaccess(long an_id) |
static boolean |
HDFLibrary.ANfileinfo(long an_id,
int[] info) |
static int |
HDFLibrary.ANget_tagref(long an_id,
int index,
int type,
short[] tagref) |
static boolean |
HDFLibrary.ANid2tagref(long an_id,
short[] tagref) |
static int |
HDFLibrary.ANnumann(long an_id,
int anntype,
short tag,
short ref) |
static boolean |
HDFLibrary.ANreadann(long ann_id,
java.lang.String[] annbuf,
int maxlen) |
static int |
HDFLibrary.ANselect(long an_id,
int index,
int anntype) |
static int |
HDFLibrary.ANstart(long fid) |
static int |
HDFLibrary.ANtag2atype(short anttype) |
static long |
HDFLibrary.ANtagref2id(long an_id,
short tag,
short ref) |
static boolean |
HDFLibrary.ANwriteann(long ann_id,
java.lang.String label,
int ann_length) |
java.lang.Object |
HDFArray.arrayify(byte[] bytes) |
byte[] |
HDFArray.byteify() |
java.lang.Object |
HDFNativeData.byteToNumber(byte[] barray,
java.lang.Object obj) |
static boolean |
HDFLibrary.DF24addimage(java.lang.String filename,
byte[] image,
int width,
int height) |
static boolean |
HDFLibrary.DF24addimage(java.lang.String filename,
java.lang.Object theImage,
int width,
int height) |
static boolean |
HDFLibrary.DF24getdims(java.lang.String fileName,
int[] argv) |
static boolean |
HDFLibrary.DF24getimage(java.lang.String fileName,
byte[] imagedata,
int width,
int height) |
static boolean |
HDFLibrary.DF24getimage(java.lang.String fileName,
java.lang.Object theImagedata,
int width,
int height) |
static short |
HDFLibrary.DF24lastref() |
static int |
HDFLibrary.DF24nimages(java.lang.String fileName) |
static boolean |
HDFLibrary.DF24putimage(java.lang.String filename,
byte[] image,
int width,
int height) |
static boolean |
HDFLibrary.DF24putimage(java.lang.String filename,
java.lang.Object theImage,
int width,
int height) |
static boolean |
HDFLibrary.DF24readref(java.lang.String filename,
int ref) |
static boolean |
HDFLibrary.DF24reqil(int il) |
static boolean |
HDFLibrary.DF24restart() |
static boolean |
HDFLibrary.DF24setcompress(int type,
HDFCompInfo cinfo) |
static boolean |
HDFLibrary.DF24setdims(int width,
int height) |
static boolean |
HDFLibrary.DF24setil(int il) |
static int |
HDFLibrary.DFKNTsize(long numbertype) |
static boolean |
HDFLibrary.DFPaddpal(java.lang.String filename,
byte[] palette) |
static boolean |
HDFLibrary.DFPgetpal(java.lang.String filename,
byte[] palette) |
static short |
HDFLibrary.DFPlastref() |
static int |
HDFLibrary.DFPnpals(java.lang.String filename) |
static boolean |
HDFLibrary.DFPputpal(java.lang.String filename,
byte[] palette,
boolean overwrite,
java.lang.String filemode) |
static boolean |
HDFLibrary.DFPputpal(java.lang.String filename,
byte[] palette,
int overwrite,
java.lang.String filemode) |
static boolean |
HDFLibrary.DFPreadref(java.lang.String filename,
short ref) |
static short |
HDFLibrary.DFPrestart() |
static boolean |
HDFLibrary.DFPwriteref(java.lang.String filename,
short ref) |
static boolean |
HDFLibrary.DFR8addimage(java.lang.String filename,
byte[] image,
int width,
int height,
short compress) |
static boolean |
HDFLibrary.DFR8addimage(java.lang.String filename,
java.lang.Object theImage,
int width,
int height,
short compress) |
static boolean |
HDFLibrary.DFR8getdims(java.lang.String fileName,
int[] argv,
boolean[] haspalette) |
static boolean |
HDFLibrary.DFR8getimage(java.lang.String fileName,
byte[] imagedata,
int width,
int height,
byte[] palette) |
static boolean |
HDFLibrary.DFR8getimage(java.lang.String fileName,
java.lang.Object theImagedata,
int width,
int height,
byte[] palette) |
static boolean |
HDFLibrary.DFR8getpalref(short[] palref) |
static short |
HDFLibrary.DFR8lastref() |
static int |
HDFLibrary.DFR8nimages(java.lang.String fileName) |
static boolean |
HDFLibrary.DFR8putimage(java.lang.String filename,
byte[] image,
int width,
int height,
short compress) |
static boolean |
HDFLibrary.DFR8putimage(java.lang.String filename,
java.lang.Object theImage,
int width,
int height,
short compress) |
static boolean |
HDFLibrary.DFR8readref(java.lang.String filename,
int ref) |
static boolean |
HDFLibrary.DFR8restart() |
static boolean |
HDFLibrary.DFR8setcompress(int type,
HDFCompInfo cinfo)
DFR8setcompress sets compression scheme for 8-bit image
|
static boolean |
HDFLibrary.DFR8setpalette(byte[] palette) |
static boolean |
HDFLibrary.DFR8writeref(java.lang.String filename,
short ref) |
byte[] |
HDFArray.emptyBytes() |
static boolean |
HDFLibrary.GRattrinfo(long id,
int index,
java.lang.String[] name,
int[] argv) |
static int |
HDFLibrary.GRcreate(long gr_id,
java.lang.String name,
int ncomp,
long data_type,
int interlace_mode,
int[] dim_sizes) |
static boolean |
HDFLibrary.GRend(long grid) |
static boolean |
HDFLibrary.GRendaccess(long riid) |
static boolean |
HDFLibrary.GRfileinfo(long grid,
int[] args) |
static int |
HDFLibrary.GRfindattr(long id,
java.lang.String name) |
static boolean |
HDFLibrary.GRgetattr(long id,
int index,
byte[] data) |
static boolean |
HDFLibrary.GRgetattr(long id,
int index,
java.lang.Object theData) |
static boolean |
HDFLibrary.GRgetchunkinfo(long sdsid,
HDFChunkInfo chunk_def,
int[] flag) |
static boolean |
HDFLibrary.GRgetcompinfo(long ri_id,
HDFCompInfo c_info) |
static boolean |
HDFLibrary.GRgetcompress(long ri_id,
HDFCompInfo c_info) |
static boolean |
HDFLibrary.GRgetiminfo(long grid,
java.lang.String[] gr_name,
int[] args,
int[] dim_sizes) |
static int |
HDFLibrary.GRgetlutid(long rrid,
int index) |
static boolean |
HDFLibrary.GRgetlutinfo(long lutid,
int[] args) |
static int |
HDFLibrary.GRgetnluts(long rrid) |
static short |
HDFLibrary.GRidtoref(long riid) |
static short |
HDFLibrary.GRluttoref(long pal_id) |
static int |
HDFLibrary.GRnametoindex(long grid,
java.lang.String name) |
static boolean |
HDFLibrary.GRreadchunk(long sdsid,
int[] origin,
byte[] theData) |
static boolean |
HDFLibrary.GRreadchunk(long grid,
int[] origin,
java.lang.Object theData) |
static boolean |
HDFLibrary.GRreadimage(long grid,
int[] start,
int[] stride,
int[] count,
byte[] data) |
static boolean |
HDFLibrary.GRreadimage(long grid,
int[] start,
int[] stride,
int[] count,
java.lang.Object theData) |
static boolean |
HDFLibrary.GRreadlut(long lutid,
byte[] data) |
static boolean |
HDFLibrary.GRreadlut(long lutid,
java.lang.Object theData) |
static int |
HDFLibrary.GRreftoindex(long grid,
short ref) |
static boolean |
HDFLibrary.GRreqimageil(long rrid,
int interlace) |
static boolean |
HDFLibrary.GRreqlutil(long riid,
int interlace) |
static int |
HDFLibrary.GRselect(long grid,
int index) |
static boolean |
HDFLibrary.GRsetattr(long gr_id,
java.lang.String attr_name,
long data_type,
int count,
byte[] values) |
static boolean |
HDFLibrary.GRsetattr(long gr_id,
java.lang.String attr_name,
long data_type,
int count,
java.lang.Object theData) |
static boolean |
HDFLibrary.GRsetattr(long gr_id,
java.lang.String attr_name,
long data_type,
int count,
java.lang.String values) |
static boolean |
HDFLibrary.GRsetchunk(long sdsid,
HDFChunkInfo chunk_def,
int flags) |
static int |
HDFLibrary.GRsetchunkcache(long sdsid,
int maxcache,
int flags) |
static boolean |
HDFLibrary.GRsetcompress(long ri_id,
int comp_type,
HDFCompInfo c_info) |
static boolean |
HDFLibrary.GRsetexternalfile(long ri_id,
java.lang.String filename,
int offset) |
static int |
HDFLibrary.GRstart(long fid) |
static boolean |
HDFLibrary.GRwriteimage(long grid,
int[] start,
int[] stride,
int[] edge,
byte[] data) |
static boolean |
HDFLibrary.GRwriteimage(long grid,
int[] start,
int[] stride,
int[] edge,
java.lang.Object theData) |
static boolean |
HDFLibrary.GRwritelut(long pal_id,
int ncomp,
int data_type,
int interlace,
int num_entries,
byte[] pal_data) |
static boolean |
HDFLibrary.GRwritelut(long pal_id,
int ncomp,
int data_type,
int interlace,
int num_entries,
java.lang.Object theData) |
static boolean |
HDFLibrary.Hcache(long file_id,
int cache_switch) |
static int |
HDFLibrary.HCget_config_info(int coder_type)
New API for hdf-42r1
|
static boolean |
HDFLibrary.Hclose(long fid) |
static int |
HDFLibrary.HDdont_atexit() |
static boolean |
HDFLibrary.HDFclose(long file_id) |
static long |
HDFLibrary.HDFopen(java.lang.String filename,
int access,
short n_dds) |
static java.lang.String |
HDFLibrary.HDgetNTdesc(int nt) |
static void |
HDFLibrary.HEprint(java.lang.Object stream,
int level) |
static java.lang.String |
HDFLibrary.HEstring(int error_code) |
static short |
HDFLibrary.HEvalue(int level) |
static boolean |
HDFLibrary.Hgetfileversion(long file_id,
int[] vers,
java.lang.String[] string)
Note: the version of an HDF file is not well defined,
it is not recommended that programs rely on these numbers.
|
static boolean |
HDFLibrary.Hgetlibversion(int[] vers,
java.lang.String[] string) |
static boolean |
HDFLibrary.Hishdf(java.lang.String fileName) |
static int |
HDFLibrary.Hnumber(long fid) |
static int |
HDFLibrary.Hnumber(long fid,
int tagtype) |
static long |
HDFLibrary.Hopen(java.lang.String filename) |
static long |
HDFLibrary.Hopen(java.lang.String filename,
int access) |
static long |
HDFLibrary.Hopen(java.lang.String filename,
int access,
int ndds) |
static boolean |
HDFLibrary.Hsetaccesstype(long h_id,
int access_type) |
static boolean |
HDFLibrary.Hsync(long file_id) |
static boolean |
HDFLibrary.HXsetcreatedir(java.lang.String dir) |
static boolean |
HDFLibrary.HXsetdir(java.lang.String dir) |
static boolean |
HDFLibrary.SDattrinfo(long id,
int index,
java.lang.String[] name,
int[] argv) |
static boolean |
HDFLibrary.SDcheckempty(long sdsid,
int[] emptySDS) |
static long |
HDFLibrary.SDcreate(long sd_id,
java.lang.String name,
long number_type,
int rank,
int[] dimsizes) |
static boolean |
HDFLibrary.SDdiminfo(long dimid,
java.lang.String[] name,
int[] argv) |
static boolean |
HDFLibrary.SDend(long sdid) |
static boolean |
HDFLibrary.SDendaccess(long sdsid) |
static boolean |
HDFLibrary.SDfileinfo(long sdid,
int[] argv) |
static long |
HDFLibrary.SDfindattr(long id,
java.lang.String name) |
static boolean |
HDFLibrary.SDgetcal(long sdsid,
double[] argv,
int[] NT) |
static boolean |
HDFLibrary.SDgetchunkinfo(long sdsid,
HDFChunkInfo chunk_def,
int[] clflags) |
static boolean |
HDFLibrary.SDgetcompinfo(long id,
HDFCompInfo cinfo)
Deprecated.
As of HDF 4.2.9, replaced by
HDFLibrary.SDgetcompinfo(long, HDFCompInfo) |
static boolean |
HDFLibrary.SDgetdatastrs(long sdsid,
java.lang.String[] strings,
int len) |
static long |
HDFLibrary.SDgetdimid(long sdsid,
int index) |
static boolean |
HDFLibrary.SDgetdimscale(long dimid,
byte[] data) |
static boolean |
HDFLibrary.SDgetdimscale(long dimid,
java.lang.Object theData) |
static boolean |
HDFLibrary.SDgetdimstrs(long dimid,
java.lang.String[] args,
int len) |
static boolean |
HDFLibrary.SDgetfillvalue(long sdsid,
byte[] fillValue) |
static boolean |
HDFLibrary.SDgetfillvalue(long sdsid,
java.lang.Object[] theFillValue) |
static boolean |
HDFLibrary.SDgetinfo(long sdsid,
java.lang.String[] name,
int[] dimsizes,
int[] args) |
static boolean |
HDFLibrary.SDgetrange(long sdsid,
byte[] max,
byte[] min) |
static boolean |
HDFLibrary.SDgetrange(long sdsid,
double[] maxmin) |
static int |
HDFLibrary.SDidtoref(long sdsid) |
static boolean |
HDFLibrary.SDiscoordvar(long sdsid) |
static boolean |
HDFLibrary.SDisdimval_bwcomp(long dimid) |
static boolean |
HDFLibrary.SDisrecord(long sdsid) |
static int |
HDFLibrary.SDnametoindex(long sdid,
java.lang.String name) |
static boolean |
HDFLibrary.SDreadattr(long id,
int index,
byte[] data) |
static boolean |
HDFLibrary.SDreadattr(long id,
int index,
java.lang.Object theData) |
static boolean |
HDFLibrary.SDreadchunk(long sdsid,
int[] origin,
byte[] theData) |
static boolean |
HDFLibrary.SDreadchunk(long sdsid,
int[] origin,
java.lang.Object theData) |
static boolean |
HDFLibrary.SDreaddata_double(long sdsid,
int[] start,
int[] stride,
int[] count,
double[] theData) |
static boolean |
HDFLibrary.SDreaddata_float(long sdsid,
int[] start,
int[] stride,
int[] count,
float[] theData) |
static boolean |
HDFLibrary.SDreaddata_int(long sdsid,
int[] start,
int[] stride,
int[] count,
int[] theData) |
static boolean |
HDFLibrary.SDreaddata_long(long sdsid,
int[] start,
int[] stride,
int[] count,
long[] theData) |
static boolean |
HDFLibrary.SDreaddata_short(long sdsid,
int[] start,
int[] stride,
int[] count,
short[] theData) |
static boolean |
HDFLibrary.SDreaddata(long sdsid,
int[] start,
int[] stride,
int[] count,
byte[] data) |
static boolean |
HDFLibrary.SDreaddata(long sdsid,
int[] start,
int[] stride,
int[] count,
java.lang.Object theData) |
static int |
HDFLibrary.SDreftoindex(long sdid,
int ref) |
static long |
HDFLibrary.SDselect(long sdid,
int index) |
static boolean |
HDFLibrary.SDsetaccesstype(long id,
int accesstype) |
static boolean |
HDFLibrary.SDsetattr(long s_id,
java.lang.String attr_name,
long num_type,
int count,
byte[] values) |
static boolean |
HDFLibrary.SDsetattr(long s_id,
java.lang.String attr_name,
long num_type,
int count,
java.lang.Object theValues) |
static boolean |
HDFLibrary.SDsetblocksize(long sdsid,
int block_size) |
static boolean |
HDFLibrary.SDsetcal(long sds_id,
double cal,
double cal_err,
double offset,
double offset_err,
int number_type) |
static boolean |
HDFLibrary.SDsetchunk(long sdsid,
HDFChunkInfo chunk_def,
int flags) |
static int |
HDFLibrary.SDsetchunkcache(long sdsid,
int maxcache,
int flags) |
static boolean |
HDFLibrary.SDsetcompress(long id,
int type,
HDFCompInfo cinfo) |
static boolean |
HDFLibrary.SDsetdatastrs(long sds_id,
java.lang.String label,
java.lang.String unit,
java.lang.String format,
java.lang.String coordsys) |
static boolean |
HDFLibrary.SDsetdimname(long dim_id,
java.lang.String dim_name) |
static boolean |
HDFLibrary.SDsetdimscale(long dim_id,
int count,
int number_type,
byte[] data) |
static boolean |
HDFLibrary.SDsetdimscale(long dim_id,
int count,
int number_type,
java.lang.Object theData) |
static boolean |
HDFLibrary.SDsetdimstrs(long dim_id,
java.lang.String label,
java.lang.String unit,
java.lang.String format) |
static boolean |
HDFLibrary.SDsetdimval_comp(long dimid,
int comp_mode) |
static boolean |
HDFLibrary.SDsetexternalfile(long sds_id,
java.lang.String filename,
int offset) |
static boolean |
HDFLibrary.SDsetfillmode(long sdsid,
boolean fill_enable) |
static boolean |
HDFLibrary.SDsetfillmode(long sdsid,
int fillmode) |
static boolean |
HDFLibrary.SDsetfillvalue(long sds_id,
byte[] fill_val) |
static boolean |
HDFLibrary.SDsetfillvalue(long sds_id,
java.lang.Object the_fill_val) |
static boolean |
HDFLibrary.SDsetnbitdataset(long id,
int start_bit,
int bit_len,
int sign_ext,
int fill_one) |
static boolean |
HDFLibrary.SDsetrange(long sdsid,
byte[] max,
byte[] min) |
static boolean |
HDFLibrary.SDsetrange(long sdsid,
java.lang.Object max,
java.lang.Object min) |
static long |
HDFLibrary.SDstart(java.lang.String filename,
int accessmode) |
static boolean |
HDFLibrary.SDwritechunk(long sdsid,
int[] origin,
byte[] data) |
static boolean |
HDFLibrary.SDwritechunk(long sdsid,
int[] origin,
java.lang.Object theData) |
static boolean |
HDFLibrary.SDwritedata(long sdsid,
int[] start,
int[] stride,
int[] count,
byte[] data) |
static boolean |
HDFLibrary.SDwritedata(long sdsid,
int[] start,
int[] stride,
int[] count,
java.lang.Object theData) |
static int |
HDFLibrary.Vaddtagref(long vgroup_id,
int tag,
int ref) |
static int |
HDFLibrary.Vattach(long fid,
int vgroup_ref,
java.lang.String access) |
static boolean |
HDFLibrary.Vattrinfo(long id,
int index,
java.lang.String[] name,
int[] argv) |
static int |
HDFLibrary.Vdeletetagref(long vgroup_id,
int tag,
int ref) |
static void |
HDFLibrary.Vdetach(long vgroup_id) |
static void |
HDFLibrary.Vend(long file_id) |
static int |
HDFLibrary.VFfieldesize(long vdata_id,
int field_index) |
static int |
HDFLibrary.VFfieldisize(long vdata_id,
int field_index) |
static java.lang.String |
HDFLibrary.VFfieldname(long vdata_id,
int field_index) |
static int |
HDFLibrary.VFfieldorder(long vdata_id,
int field_index) |
static long |
HDFLibrary.VFfieldtype(long vdata_id,
int field_index) |
static int |
HDFLibrary.Vfind(long file_id,
java.lang.String vgroup_name) |
static long |
HDFLibrary.Vfindattr(long id,
java.lang.String name) |
static int |
HDFLibrary.Vfindclass(long file_id,
java.lang.String vgclassname) |
static int |
HDFLibrary.Vflocate(int key,
java.lang.String vgclassname) |
static int |
HDFLibrary.VFnfields(long vkey) |
static boolean |
HDFLibrary.Vgetattr(long id,
int index,
byte[] data) |
static boolean |
HDFLibrary.Vgetattr(long id,
int index,
java.lang.Object theData) |
static void |
HDFLibrary.Vgetclass(long vgroup_id,
java.lang.String[] hdfclassname) |
static int |
HDFLibrary.Vgetid(long file_id,
int vgroup_ref) |
static void |
HDFLibrary.Vgetname(long vgroup_id,
java.lang.String[] hdfname) |
static int |
HDFLibrary.Vgetnext(int key,
int ref) |
static boolean |
HDFLibrary.Vgettagref(long vgroup_id,
int index,
int[] tagref) |
static int |
HDFLibrary.Vgettagrefs(long vgroup_id,
int[] tags,
int[] refs,
int arraysize) |
static int |
HDFLibrary.Vgetversion(long id) |
static int |
HDFLibrary.VHmakegroup(long file_id,
int[] tag_array,
int[] ref_array,
int n_objects,
java.lang.String vgroup_name,
java.lang.String vgroup_class) |
static int |
HDFLibrary.VHstoredata(long file_id,
java.lang.String fieldname,
byte[] buf,
int n_records,
int data_type,
java.lang.String vdata_name,
java.lang.String vdata_class) |
static int |
HDFLibrary.VHstoredata(long file_id,
java.lang.String fieldname,
java.lang.Object thebuf,
int n_records,
int data_type,
java.lang.String vdata_name,
java.lang.String vdata_class) |
static int |
HDFLibrary.VHstoredatam(long file_id,
java.lang.String fieldname,
byte[] buf,
int n_records,
int data_type,
java.lang.String vdata_name,
java.lang.String vdata_class,
int order) |
static int |
HDFLibrary.VHstoredatam(long file_id,
java.lang.String fieldname,
java.lang.Object buf,
int n_records,
int data_type,
java.lang.String vdata_name,
java.lang.String vdata_class,
int order) |
static boolean |
HDFLibrary.Vinqtagref(long vgroup_id,
int tag,
int ref) |
static boolean |
HDFLibrary.Vinquire(long vgroup_id,
int[] n_entries,
java.lang.String[] vgroup_name) |
static int |
HDFLibrary.Vinsert(long vgroup_id,
long v_id) |
static boolean |
HDFLibrary.Visvg(long vgroup_id,
int vgroup_ref) |
static boolean |
HDFLibrary.Visvs(long vgroup_id,
int vdata_ref) |
static int |
HDFLibrary.Vlone(long fid,
int[] ref_array,
int buffersize) |
static int |
HDFLibrary.Vnattrs(long id) |
static int |
HDFLibrary.Vnrefs(int key,
int ref) |
static int |
HDFLibrary.Vntagrefs(long vgroup_id) |
static int |
HDFLibrary.VQueryref(long vkey) |
static int |
HDFLibrary.VQuerytag(long vkey) |
static boolean |
HDFLibrary.VSappendable(int vkey,
int block_size) |
static int |
HDFLibrary.VSattach(long fid,
int vdata_ref,
java.lang.String access) |
static boolean |
HDFLibrary.VSattrinfo(long id,
int index,
int attr_index,
java.lang.String[] name,
int[] argv) |
static void |
HDFLibrary.VSdetach(long vdata_id) |
static int |
HDFLibrary.VSelts(long vdata_id) |
static boolean |
HDFLibrary.Vsetattr(long id,
java.lang.String attr_name,
long data_type,
int count,
byte[] data) |
static boolean |
HDFLibrary.Vsetattr(long id,
java.lang.String attr_name,
long data_type,
int count,
java.lang.Object theData) |
static boolean |
HDFLibrary.Vsetattr(long id,
java.lang.String attr_name,
long data_type,
int count,
java.lang.String values) |
static boolean |
HDFLibrary.Vsetclass(long vgroup_id,
java.lang.String vgclassname) |
static boolean |
HDFLibrary.Vsetname(long vgroup_id,
java.lang.String vgname) |
static boolean |
HDFLibrary.VSfdefine(long vdata_id,
java.lang.String fieldname,
int numbertype,
int order) |
static boolean |
HDFLibrary.VSfexist(long vdata_id,
java.lang.String fields) |
static int |
HDFLibrary.VSfind(long file_id,
java.lang.String vdataname) |
static int |
HDFLibrary.VSfindattr(long id,
int index,
java.lang.String name) |
static int |
HDFLibrary.VSfindclass(long file_id,
java.lang.String vgclass) |
static int |
HDFLibrary.VSfindex(long id,
java.lang.String name,
int[] findex) |
static int |
HDFLibrary.VSfnattrs(long id,
int fnattrs) |
static boolean |
HDFLibrary.VSgetattr(long id,
int index,
int attr_index,
byte[] data) |
static boolean |
HDFLibrary.VSgetattr(long id,
int index,
int attr_index,
java.lang.Object theData) |
static void |
HDFLibrary.VSgetclass(long vdata_id,
java.lang.String[] hdfclassname) |
static int |
HDFLibrary.VSgetfields(long vdata_id,
java.lang.String[] fieldname) |
static long |
HDFLibrary.VSgetid(long file_id,
int vdata_ref) |
static int |
HDFLibrary.VSgetinterlace(long vdata_id) |
static void |
HDFLibrary.VSgetname(long vdata_id,
java.lang.String[] hdfname) |
static int |
HDFLibrary.VSgetversion(int vkey) |
static boolean |
HDFLibrary.VSinquire(long vdata_id,
int[] iargs) |
static boolean |
HDFLibrary.VSinquire(long vdata_id,
int[] iargs,
java.lang.String[] sargs) |
static boolean |
HDFLibrary.VSisattr(long id) |
static int |
HDFLibrary.VSlone(long fid,
int[] ref_array,
int buffersize) |
static int |
HDFLibrary.VSnattrs(long id) |
static boolean |
HDFLibrary.VSQuerycount(long vdata_id,
int[] n_records) |
static boolean |
HDFLibrary.VSQueryfields(long vdata_id,
java.lang.String[] fields) |
static boolean |
HDFLibrary.VSQueryinterlace(long vdata_id,
int[] interlace) |
static boolean |
HDFLibrary.VSQueryname(long vdata_id,
java.lang.String[] vdata_name) |
static int |
HDFLibrary.VSQueryref(long vdata_id) |
static int |
HDFLibrary.VSQuerytag(long vdata_id) |
static boolean |
HDFLibrary.VSQueryvsize(long vdata_id,
int[] vdata_size) |
static int |
HDFLibrary.VSread(long vdata_id,
byte[] databuf,
int nrecord,
int interlace) |
static int |
HDFLibrary.VSread(long vdata_id,
java.lang.Object theData,
int nrecord,
int interlace) |
static int |
HDFLibrary.VSseek(long vdata_id,
int record) |
static boolean |
HDFLibrary.VSsetattr(long id,
int index,
java.lang.String attr_name,
long data_type,
int count,
byte[] values) |
static boolean |
HDFLibrary.VSsetattr(long id,
int index,
java.lang.String attr_name,
long data_type,
int count,
java.lang.Object theData) |
static boolean |
HDFLibrary.VSsetattr(long id,
int index,
java.lang.String attr_name,
long data_type,
int count,
java.lang.String values) |
static int |
HDFLibrary.VSsetblocksize(long vdata_id,
int blocksize) |
static void |
HDFLibrary.VSsetclass(long vdata_id,
java.lang.String vdata_class) |
static boolean |
HDFLibrary.VSsetexternalfile(int vkey,
java.lang.String filename,
int offset) |
static boolean |
HDFLibrary.VSsetfields(long vdata_id,
java.lang.String fields) |
static boolean |
HDFLibrary.VSsetinterlace(long vdata_id,
int interlace) |
static void |
HDFLibrary.VSsetname(long vdata_id,
java.lang.String vdata_name) |
static int |
HDFLibrary.VSsetnumblocks(long vdata_id,
int numblocks) |
static int |
HDFLibrary.VSsizeof(long vdata_id,
java.lang.String fields) |
static boolean |
HDFLibrary.Vstart(long fid) |
static int |
HDFLibrary.VSwrite(long vdata_id,
byte[] databuf,
int n_records,
int interlace) |
static int |
HDFLibrary.VSwrite(long vdata_id,
java.lang.Object databuf,
int n_records,
int interlace) |
Constructor and Description |
---|
HDFArray(java.lang.Object anArray) |
Modifier and Type | Class and Description |
---|---|
class |
HDFNotImplementedException
HDFNotImplementedException indicates a function that is part
of the HDF API, but which cannot or will not be implemented
for Java.
|
Modifier and Type | Class and Description |
---|---|
class |
HDFDeflateCompInfo
This class is a container for the parameters to the HDF
DEFLATION compression algorithm.
|
class |
HDFNBITCompInfo
This class is a container for the parameters to the HDF
``NBIT'' compression class.
|
class |
HDFRLECompInfo
This class is a generic container for the parameters to the HDF
RLE compressed classes, with the ``new'' type encoding.
|
class |
HDFSKPHUFFCompInfo
This class is a generic container for the parameters to the HDF
``Skipping Huffman'' compression classes.
|
class |
HDFSZIPCompInfo
This class is a container for the parameters to the HDF
SZIP compression algorithm.
|
Modifier and Type | Class and Description |
---|---|
class |
HDFIMCOMPCompInfo
This class is a container for the parameters to the HDF
``Image compression'' compression class.
|
class |
HDFJPEGCompInfo
This class is a container for the parameters to the HDF
JPEG compression class.
|
class |
HDFOldRLECompInfo
This class is a generic container for the parameters to the HDF
RLE compressed classes, with the ``old'' type encoding.
|