peakml.io
Interface ParserProgressListener


public interface ParserProgressListener

Interface acting as a progress listener for the parser classes. By implementing this interface and passing a reference to one of the parse-methods in this class, the progress can be monitored. Each parse-function calculates the current position in the file based on the result of Header.getNrPeaks().


Method Summary
 void update(double percentage)
          This method is called by parse-functions in the parser classes to indicate the progress of the parsing.
 

Method Detail

update

void update(double percentage)
This method is called by parse-functions in the parser classes to indicate the progress of the parsing. A percentage is returned, which lies between 0 and 100.

Parameters:
percentage - The percentage of the PeakML already parsed.