Jetif v1.8.0

jetif.ext
Interface ResultRender


public interface ResultRender

A ResultRender is responsible to render the suite result to particular format, such as XML, HTML.
The implemenation of this interface should output the render result to specified writer.

Author:
Vicky Wang

Method Summary
 void render(SuiteResult result, Writer writer)
          Render the suite result and output document to specified writer.
 void setEncoding(String encoding)
          Receive the encoding specified by the user.
 

Method Detail

setEncoding

public void setEncoding(String encoding)
Receive the encoding specified by the user.
Note: This encoding is used to output encoding/charset in the output document only, for example: output the encoding attribute in XML header. The implementation may ignore this if it is not needed. The writer provided by framework already have correct encoding.

Parameters:
encoding - the encoding

render

public void render(SuiteResult result,
                   Writer writer)
Render the suite result and output document to specified writer.
The implemenation should NOT close the specified writer, because the caller may pass a output stream which should not be closed, for example, the "standard" output. The caller should take the responsibility to close the writer if needed.

Parameters:
result - the result object to be rendered.
writer - the writer to output document.

Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.