Package com.sun.javatest.report
Class HTMLReport
- java.lang.Object
-
- com.sun.javatest.report.HTMLReport
-
public class HTMLReport extends java.lang.Object
HTML format of the report.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
DEFAULT_CHARSET
Default charset to use.protected java.nio.charset.Charset
reportCharset
The charset to request for the report output.
-
Constructor Summary
Constructors Constructor Description HTMLReport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptSettings(ReportSettings s)
java.lang.String
getBaseDirName()
static java.lang.String
getFile(int code)
Gets the file name based one the input code.static java.lang.String[]
getReportFilenames()
Gets the standard report file name used in JT Harness.java.lang.String
getReportID()
java.util.List<com.sun.javatest.report.ReportFormat>
getSubReports()
java.lang.String
getTypeName()
void
setKflData(KflSorter s)
void
setResults(java.util.List<java.util.TreeSet<TestResult>> results)
com.sun.javatest.report.ReportFormat.ReportLink
write(ReportSettings repSettings, java.io.File dir)
-
-
-
Field Detail
-
reportCharset
protected java.nio.charset.Charset reportCharset
The charset to request for the report output. Defaulted to UTF-8, if this is not available at runtime, code will use the default charset provided by the runtime.- See Also:
Charset.defaultCharset
-
DEFAULT_CHARSET
protected java.lang.String DEFAULT_CHARSET
Default charset to use. This is checked against the runtime availability before being used.
-
-
Method Detail
-
getReportFilenames
public static java.lang.String[] getReportFilenames()
Gets the standard report file name used in JT Harness. Note that this returns the file names which are used for the main report only, not the aux. HTML files.- Returns:
- The report name.
-
getFile
public static java.lang.String getFile(int code)
Gets the file name based one the input code.- Parameters:
code
- The code name for the file.- Returns:
- The file name.
-
write
public com.sun.javatest.report.ReportFormat.ReportLink write(ReportSettings repSettings, java.io.File dir) throws java.io.IOException
- Throws:
java.io.IOException
-
getReportID
public java.lang.String getReportID()
-
getBaseDirName
public java.lang.String getBaseDirName()
-
getTypeName
public java.lang.String getTypeName()
-
acceptSettings
public boolean acceptSettings(ReportSettings s)
-
getSubReports
public java.util.List<com.sun.javatest.report.ReportFormat> getSubReports()
-
setResults
public void setResults(java.util.List<java.util.TreeSet<TestResult>> results)
-
setKflData
public void setKflData(KflSorter s)
-
-