Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
javasoze committed Nov 29, 2011
1 parent 8ec3db5 commit 043e432
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class LinedFileDataProvider extends StreamDataProvider<String> {


public LinedFileDataProvider(File file,long startingOffset){
super(ZoieConfig.DEFAULT_VERSION_COMPARATOR);
super(ZoiePerfVersion.COMPARATOR);
_file = file;
_rad = null;
_startingOffset = startingOffset;
Expand All @@ -43,15 +43,15 @@ public DataEvent<String> next() {
if (line == null) return null;

String version = ZoiePerfVersion.toString(_count,_offset);
_offset+=version.length();
_offset+=line.length();
_count++;

event = new DataEvent<String>(line,version);
}
catch(IOException ioe){
logger.error(ioe.getMessage(),ioe);
}
}
_count++;
return event;
}

Expand Down

0 comments on commit 043e432

Please sign in to comment.