3 import org.yaz4j.jni.SWIGTYPE_p_ZOOM_package_p;
4 import org.yaz4j.jni.yaz4jlib;
7 private SWIGTYPE_p_ZOOM_package_p pack;
8 private ConnectionExtended connection;
11 Package(SWIGTYPE_p_ZOOM_package_p pack, ConnectionExtended connection, String type) {
13 this.connection = connection;
17 public void finalize() {
22 * Write option for a specified key
23 * @param key option name
24 * @param value option value
25 * @return package (self) for chainability
27 public Package option(String key, String value) {
28 yaz4jlib.ZOOM_package_option_set(pack, key, value);
33 * Read option for a specified key.
34 * @param key option name
35 * @return option value
37 public String option(String key) {
38 return yaz4jlib.ZOOM_package_option_get(pack, key);
45 yaz4jlib.ZOOM_package_send(pack, type);
50 yaz4jlib.ZOOM_package_destroy(pack);