spec.reporter
Class Writer
java.lang.Object
spec.reporter.Writer
- Direct Known Subclasses:
- HTMLWriter, PlainWriter
public abstract class Writer
- extends java.lang.Object
Field Summary |
protected java.io.FileOutputStream |
fos
|
protected java.io.PrintStream |
stream
|
Constructor Summary |
protected |
Writer(java.lang.String outputFileName)
|
Method Summary |
void |
closeStream()
|
void |
endAndStartData()
|
void |
endAndStartRecordAndData()
|
void |
endRecordAndData()
|
void |
endReport()
|
void |
endTable()
|
void |
endTable(boolean endTbody)
|
abstract java.lang.String |
getCopyRightSign()
|
static Writer |
getInstance(java.lang.String desc,
java.lang.String outputFileName)
|
java.lang.String |
getType()
|
abstract void |
handleBenchmarkRecord(BenchmarkRecord record)
|
abstract void |
insertRecord(java.lang.String prop,
java.lang.String value)
|
abstract void |
insertRecords(java.util.ArrayList violations)
|
abstract void |
putHat(java.lang.String runStatus,
java.lang.String compositeScore,
java.lang.String workloadName,
java.lang.String category,
java.lang.String hwVendor,
java.lang.String jvmVendor,
java.lang.String hwModel,
java.lang.String jvmName,
java.lang.String submitter,
java.lang.String testDate,
java.lang.String jvmVersion)
|
abstract void |
putSummaryTable(java.lang.String scoreString,
java.util.TreeMap<java.lang.String,java.lang.Double> scores)
|
void |
setType(java.lang.String aType)
|
abstract void |
startDetailsTable()
|
void |
startRecordAndData()
|
void |
startReport()
|
void |
startTable(java.lang.String header,
boolean needHeader)
|
void |
startTable(java.lang.String header,
boolean needHeader,
boolean showBorder,
boolean onlyTableStart)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stream
protected java.io.PrintStream stream
fos
protected java.io.FileOutputStream fos
Writer
protected Writer(java.lang.String outputFileName)
closeStream
public void closeStream()
startTable
public void startTable(java.lang.String header,
boolean needHeader)
startTable
public void startTable(java.lang.String header,
boolean needHeader,
boolean showBorder,
boolean onlyTableStart)
startDetailsTable
public abstract void startDetailsTable()
endTable
public void endTable(boolean endTbody)
insertRecord
public abstract void insertRecord(java.lang.String prop,
java.lang.String value)
insertRecords
public abstract void insertRecords(java.util.ArrayList violations)
putSummaryTable
public abstract void putSummaryTable(java.lang.String scoreString,
java.util.TreeMap<java.lang.String,java.lang.Double> scores)
putHat
public abstract void putHat(java.lang.String runStatus,
java.lang.String compositeScore,
java.lang.String workloadName,
java.lang.String category,
java.lang.String hwVendor,
java.lang.String jvmVendor,
java.lang.String hwModel,
java.lang.String jvmName,
java.lang.String submitter,
java.lang.String testDate,
java.lang.String jvmVersion)
startRecordAndData
public void startRecordAndData()
endRecordAndData
public void endRecordAndData()
endAndStartRecordAndData
public void endAndStartRecordAndData()
endAndStartData
public void endAndStartData()
endTable
public void endTable()
handleBenchmarkRecord
public abstract void handleBenchmarkRecord(BenchmarkRecord record)
startReport
public void startReport()
endReport
public void endReport()
getCopyRightSign
public abstract java.lang.String getCopyRightSign()
getInstance
public static Writer getInstance(java.lang.String desc,
java.lang.String outputFileName)
getType
public java.lang.String getType()
setType
public void setType(java.lang.String aType)