3 import org.yaz4j.jni.SWIGTYPE_p_ZOOM_scanset_p;
4 import org.yaz4j.jni.SWIGTYPE_p_int;
5 import org.yaz4j.jni.yaz4jlib;
9 private SWIGTYPE_p_ZOOM_scanset_p scanSet = null ;
10 private Connection connection;
11 private boolean disposed = false;
13 ScanSet(SWIGTYPE_p_ZOOM_scanset_p scanSet, Connection connection)
15 this.connection = connection;
16 this.scanSet = scanSet;
19 public void finalize()
24 public ScanTerm get(long index)
26 SWIGTYPE_p_int occ = yaz4jlib.new_intp();
27 SWIGTYPE_p_int length = yaz4jlib.new_intp();
28 String term = yaz4jlib.ZOOM_scanset_term( scanSet, (long)index, occ, length ) ;
29 int occurences = yaz4jlib.intp_value(occ);
30 yaz4jlib.delete_intp(occ);
31 yaz4jlib.delete_intp(length);
32 return new ScanTerm(term, occurences);
37 return yaz4jlib.ZOOM_scanset_size(scanSet);
44 yaz4jlib.ZOOM_scanset_destroy(scanSet);