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; }
public void close() { fileReadDao.close(); }