3 import java.io.UnsupportedEncodingException;
5 import org.yaz4j.jni.SWIGTYPE_p_ZOOM_record_p;
6 import org.yaz4j.jni.SWIGTYPE_p_int;
7 import org.yaz4j.jni.yaz4jlib;
11 private SWIGTYPE_p_ZOOM_record_p record = null ;
12 private ResultSet resultSet = null ;
13 private boolean disposed = false;
15 Record(SWIGTYPE_p_ZOOM_record_p record, ResultSet resultSet)
17 this.resultSet = resultSet;
21 public void finalize()
26 public byte[] getContent()
29 SWIGTYPE_p_int length = null ;
30 return yaz4jlib.ZOOM_record_get_bytes(record, type, length) ;
31 // String contentString = yaz4jlib.ZOOM_record_get(record, type, length) ;
32 // System.err.println("!!!!!");
33 // System.err.println(contentString);
34 // System.err.println(contentString.length());
35 // System.err.println("!!!!!");
37 // byte[] bytes = contentString.getBytes("UTF8");
38 // System.err.println(bytes.length);
40 // } catch (UnsupportedEncodingException e) {
41 // throw new RuntimeException(e);
45 public String getSyntax()
47 String type = "syntax";
48 SWIGTYPE_p_int length = null ;
49 String syntax = yaz4jlib.ZOOM_record_get(record, type, length);
53 public String getDatabase()
55 String type = "database";
56 SWIGTYPE_p_int length = null ;
57 String database = yaz4jlib.ZOOM_record_get(record, type, length);