org.jacoco.report
Class FileSingleReportOutput

java.lang.Object
  extended by org.jacoco.report.FileSingleReportOutput
All Implemented Interfaces:
ISingleReportOutput

public class FileSingleReportOutput
extends Object
implements ISingleReportOutput

Implementation of ISingleReportOutput that writes the file directly to a given location.

Version:
0.4.1.20101007204400
Author:
Marc R. Hoffmann

Constructor Summary
FileSingleReportOutput(File file)
          Creates a new instance for document output to the given location.
 
Method Summary
 OutputStream createFile()
          Creates the output file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSingleReportOutput

public FileSingleReportOutput(File file)
Creates a new instance for document output to the given location.

Parameters:
file -
Method Detail

createFile

public OutputStream createFile()
                        throws IOException
Description copied from interface: ISingleReportOutput
Creates the output file. The returned OutputStream has to be closed.

Specified by:
createFile in interface ISingleReportOutput
Returns:
output for the content
Throws:
IOException - if the creation fails