Esempio n. 1
0
  /** Dumps out the contents of the excel file */
  private void display(WorkbookSettings ws) throws IOException {
    Record r = null;
    boolean found = false;
    while (reader.hasNext() && !found) {
      r = reader.next();
      if (r.getType() == Type.WRITEACCESS) {
        found = true;
      }
    }

    if (!found) {
      System.err.println("Warning:  could not find write access record");
      return;
    }

    byte[] data = r.getData();

    String s = null;

    s = StringHelper.getString(data, data.length, 0, ws);

    System.out.println(s);
  }
Esempio n. 2
0
 /*  68:    */
 /*  69:    */ public void add(Record cont) /*  70:    */ {
   /*  71:180 */ addData(cont.getData());
   /*  72:    */ }