Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package gnu.trove.benchmark;
 /*    */ 
 /*    */ import java.io.OutputStreamWriter;
 /*    */ import java.io.PrintWriter;
 /*    */ 
 /*    */ class XMLReporter
 /*    */   implements Reporter
 /*    */ {
 /*    */   PrintWriter out;
/*    */ 
/*    */   XMLReporter()
/*    */   {
/* 35 */     this. = new PrintWriter(new OutputStreamWriter(.), true);
/*    */   }
/*    */ 
/*    */   XMLReporter(PrintWriter out)
/*    */   {
/* 40 */     this. = out;
/*    */   }
/*    */ 
/*    */   public void report(Result result) {
/* 44 */     this..println("<result>");
/* 45 */     this..print("<desc>");
/* 46 */     this..print(result.getDescription());
/* 47 */     this..println("</desc>");
/*    */ 
/* 49 */     this..print("<iterations>");
/* 50 */     this..print(result.getIterations());
/* 51 */     this..println("</iterations>");
/*    */ 
/* 53 */     this..print("<theirTotal>");
/* 54 */     this..print(result.getTheirs());
/* 55 */     this..println("</theirTotal>");
/*    */ 
/* 57 */     this..print("<theirAvg>");
/* 58 */     this..print(result.getTheirAvg());
/* 59 */     this..println("</theirAvg>");
/*    */ 
/* 61 */     this..print("<ourTotal>");
/* 62 */     this..print(result.getOurs());
/* 63 */     this..println("</ourTotal>");
/*    */ 
/* 65 */     this..print("<ourAvg>");
/* 66 */     this..print(result.getOurAvg());
/* 67 */     this..println("</ourAvg>");
/*    */ 
/* 69 */     this..println("</result>");
/*    */   }
/*    */ 
/*    */   public void start() {
/* 73 */     this..println("<?xml version=\"1.0\" encoding=\"ASCII\" ?>");
/* 74 */     this..println("<benchmark>");
/* 75 */     this..print("<env>");
/* 76 */     for (int i = 0; i < ..i++) {
/* 77 */       String key = .[i];
/* 78 */       this..print(System.getProperty(key));
/* 79 */       this..print(" ");
/*    */     }
/* 81 */     this..println("</env>");
/*    */   }
/*    */ 
/*    */   public void finish() {
/* 85 */     this..println("</benchmark>");
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     gnu.trove.benchmark.XMLReporter
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X