org.jacoco.report
Class FileSingleReportOutput
java.lang.Object
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:
- $Revision: $
- Author:
- Marc R. Hoffmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSingleReportOutput
public FileSingleReportOutput(File file)
- Creates a new instance for document output to the given location.
- Parameters:
file
-
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