@@ -0,0 +1,986 @@
+/*%0A * Copyright (c) 1995-2013, Index Datassss%0A * All rights reserved.%0A * See the file LICENSE for details.%0A */%0Apackage org.yaz4j;%0A%0Aimport java.util.List;%0Aimport org.yaz4j.exception.ZoomException;%0A%0A/**%0A *%0A * @author jakub%0A */%0Aclass ZoomCLI %7B%0A  static public void main(String%5B%5D args) %7B%0A    System.out.println(%22Open connection to z3950.indexdata.dk:210/gils...%22);%0A    Connection con = new Connection(%22z3950.indexdata.dk:210/gils%22, 0);%0A    try %7B%0A      con.setSyntax(%22sutrs%22);%0A      con.connect();%0A      System.out.println(%22Search for 'utah'...%22);%0A      ResultSet s = con.search(new PrefixQuery(%22@attr 1=4 utah%22));%0A      System.out.println(%22Retrieve all records..%22);%0A      List%3CRecord%3E all = s.getRecords(0, (int) s.getHitCount());%0A      for (Record r : all) %7B%0A        System.out.println(r.render());%0A      %7D%0A      System.out.println(%22Success%22);%0A    %7D catch (ZoomException ze) %7B%0A      System.out.println(%22Failure%22);%0A      ze.printStackTrace();%0A    %7D finally %7B%0A      con.close();%0A    %7D%0A  %7D%0A%7D%0A

Add simple CLI program