org.jacoco.report
Class FileMultiReportOutput

java.lang.Object
  extended by org.jacoco.report.FileMultiReportOutput
All Implemented Interfaces:
IMultiReportOutput

public class FileMultiReportOutput
extends Object
implements IMultiReportOutput

Implementation of IMultiReportOutput that writes files directly to a given directory.

Version:
$Revision: $
Author:
Marc R. Hoffmann

Constructor Summary
FileMultiReportOutput(File basedir)
          Creates a new instance for document output in the given base directory.
 
Method Summary
 OutputStream createFile(String path)
          Creates a file at the given local path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileMultiReportOutput

public FileMultiReportOutput(File basedir)
Creates a new instance for document output in the given base directory.

Parameters:
basedir -
Method Detail

createFile

public OutputStream createFile(String path)
                        throws IOException
Description copied from interface: IMultiReportOutput
Creates a file at the given local path. The returned OutputStream has to be closed before the next document is created.

Specified by:
createFile in interface IMultiReportOutput
Parameters:
path - local path to the new document
Returns:
output for the content
Throws:
IOException - if the creation fails