1 6 7 package analyzer.listeners; 8 9 13 public class DOCAnalyzer extends DOCParser{ 14 15 double frequency; 16 long totalTime; 17 18 public DOCAnalyzer(String pathAndTS) { 19 super(pathAndTS); 20 } 21 22 protected void eof(){ 23 if(frequency==-1)System.out.println("nothing found"); 24 else System.out.println("freq:"+frequency+" time:"+prettyTime(totalTime)); 25 } 26 27 protected void init(){ 28 frequency=totalTime=-1; 29 } 30 31 protected void analyzeValues(double freq,long time){ 32 frequency=freq; 33 totalTime=time; 34 } 35 } 36 | Popular Tags |