/** * Returns the next data record and increments the pointer * * @return the next data record */ Record next() { Record r = new Record(data, filePos, this); return r; }
/** * Peek ahead to the next record, without incrementing the file position * * @return the next record */ Record peek() { int tempPos = filePos; Record r = new Record(data, filePos, this); filePos = tempPos; return r; }
/** * Peek ahead to the next record, without incrementing the file position * * @return the next record */ Record peek() { int tempPos = filePos; Record r = new Record(data, filePos, this); filePos = tempPos; return r; }
/** * Returns the next data record and increments the pointer * * @return the next data record */ Record next() { Record r = new Record(data, filePos, this); return r; }