Changeset 1282 for trunk/bindings
- Timestamp:
- 14/10/09 14:12:05 (3 years ago)
- Location:
- trunk/bindings/java
- Files:
-
- 2 edited
-
native/NexusFile.c (modified) (2 diffs)
-
org/nexusformat/NexusFile.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bindings/java/native/NexusFile.c
r952 r1282 21 21 22 22 Updated for 64 bit types, Mark Koennecke, August 2007 23 24 Added NXinitattrdir and NXinitgroupdir, Mark Koennecke, October 2009 23 25 24 26 IMPLEMENTATION NOTES … … 1233 1235 } 1234 1236 } 1237 /*---------------------------------------------------------------------*/ 1238 JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_initattrdir 1239 (JNIEnv *env, jobject obj, jint handle) 1240 { 1241 NXhandle nxhandle; 1242 int iRet; 1243 1244 /* set error handler */ 1245 NXMSetError(env,JapiError); 1246 1247 /* exchange the Java handler to a NXhandle */ 1248 nxhandle = (NXhandle)HHGetPointer(handle); 1249 1250 iRet = NXinitattrdir(nxhandle); 1251 1252 } 1253 /*---------------------------------------------------------------------*/ 1254 JNIEXPORT void JNICALL Java_org_nexusformat_NexusFile_initgroupdir 1255 (JNIEnv *env, jobject obj, jint handle) 1256 { 1257 NXhandle nxhandle; 1258 int iRet; 1259 1260 /* set error handler */ 1261 NXMSetError(env,JapiError); 1262 1263 /* exchange the Java handler to a NXhandle */ 1264 nxhandle = (NXhandle)HHGetPointer(handle); 1265 1266 iRet = NXinitgroupdir(nxhandle); 1267 } 1235 1268 /*------------------------------------------------------------------------ 1236 1269 debugstop -
trunk/bindings/java/org/nexusformat/NexusFile.java
r1278 r1282 16 16 * 17 17 * copyright: see accompanying COPYRIGHT file 18 * 19 * added nxinitattrdir: Mark Koennecke, October 2009 18 20 */ 19 21 package org.nexusformat; … … 553 555 protected native int nextentry(int handle, String names[]); 554 556 protected native int nextattr(int handle, String names[], int args[]); 557 protected native void initattrdir(int handle); 558 protected native void initgroupdir(int handle); 555 559 /** 556 560 * setnumberformat sets the number format for printing number when … … 599 603 String names[] = new String[2]; 600 604 int i; 605 606 initgroupdir(handle); 601 607 while(nextentry(handle,names) != -1) 602 608 { … … 621 627 Hashtable h = new Hashtable(); 622 628 if(handle < 0) throw new NexusException("NAPI-ERROR: File not open"); 629 initattrdir(handle); 623 630 while(nextattr(handle,names,args) != -1) 624 631 {
Note: See TracChangeset
for help on using the changeset viewer.
