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.


Constructor Summary
FileMultiReportOutput(File basedir)
          Creates a new instance for document output in the given base directory.
 
Method Summary
 void close()
          Closes the underlying resource container.
 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 - base directory
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

close

public void close()
           throws IOException
Description copied from interface: IMultiReportOutput
Closes the underlying resource container.

Specified by:
close in interface IMultiReportOutput
Throws:
IOException - if closing fails


Copyright © 2009–2024 Mountainminds GmbH & Co. KG. All rights reserved.