IFormatterGenerator

public interface IFormatterGenerator

com.android.tradefed.result.suite.IFormatterGenerator


Interface describing a formatter for SuiteResultHolder.

Summary

Public methods

abstract SuiteResultHolder parseResults(File resultDir)

Reverse operation of writeResults(SuiteResultHolder, File) which takes a result directory and create the SuiteResultHolder out of it.

abstract File writeResults(SuiteResultHolder holder, File resultDir)

Write the results into a particular format.

Public methods

parseResults

public abstract SuiteResultHolder parseResults (File resultDir)

Reverse operation of writeResults(SuiteResultHolder, File) which takes a result directory and create the SuiteResultHolder out of it.

Parameters
resultDir File: The directory where to find the results.

Returns
SuiteResultHolder A SuiteResultHolder containing the results representation. Or null if anything goes wrong.

Throws
IOException

writeResults

public abstract File writeResults (SuiteResultHolder holder, 
                File resultDir)

Write the results into a particular format.

Parameters
holder SuiteResultHolder: The results held in SuiteResultHolder.

resultDir File: The directory where results should be stored.

Returns
File a File containing the results in a formatted manner.

Throws
IOException