Package org.jacoco.report
Class FileMultiReportOutput
- java.lang.Object
-
- org.jacoco.report.FileMultiReportOutput
-
- All Implemented Interfaces:
IMultiReportOutput
public class FileMultiReportOutput extends java.lang.Object implements IMultiReportOutput
Implementation ofIMultiReportOutput
that writes files directly to a given directory.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
basedir
-
Constructor Summary
Constructors Constructor Description FileMultiReportOutput(java.io.File basedir)
Creates a new instance for document output in the given base directory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the underlying resource container.java.io.OutputStream
createFile(java.lang.String path)
Creates a file at the given local path.
-
-
-
Method Detail
-
createFile
public java.io.OutputStream createFile(java.lang.String path) throws java.io.IOException
Description copied from interface:IMultiReportOutput
Creates a file at the given local path. The returnedOutputStream
has to be closed before the next document is created.- Specified by:
createFile
in interfaceIMultiReportOutput
- Parameters:
path
- local path to the new document- Returns:
- output for the content
- Throws:
java.io.IOException
- if the creation fails
-
close
public void close() throws java.io.IOException
Description copied from interface:IMultiReportOutput
Closes the underlying resource container.- Specified by:
close
in interfaceIMultiReportOutput
- Throws:
java.io.IOException
- if closing fails
-
-