Exemplo n.º 1
0
  public List<T> getObjectList() throws IOException {
    T t = fileReadDao.current();

    if (t == null) {
      return null;
    }

    List<T> result = new ArrayList<T>(LIST_COUNT);
    int count = 0;
    while (count++ < LIST_COUNT && t != null) {
      result.add(t);
      t = fileReadDao.next();
    }

    return result;
  }
Exemplo n.º 2
0
 public void close() {
   fileReadDao.close();
 }