Class FileMultiReportOutput
java.lang.Object
org.jacoco.report.FileMultiReportOutput
- All Implemented Interfaces:
IMultiReportOutput
Implementation of
IMultiReportOutput that writes files directly to a
given directory.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileMultiReportOutput(File basedir) Creates a new instance for document output in the given base directory. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the underlying resource container.createFile(String path) Creates a file at the given local path.
-
Field Details
-
basedir
-
-
Constructor Details
-
FileMultiReportOutput
Creates a new instance for document output in the given base directory.- Parameters:
basedir- base directory
-
-
Method Details
-
createFile
Description copied from interface:IMultiReportOutputCreates a file at the given local path. The returnedOutputStreamhas to be closed before the next document is created.- Specified by:
createFilein interfaceIMultiReportOutput- Parameters:
path- local path to the new document- Returns:
- output for the content
- Throws:
IOException- if the creation fails
-
close
Description copied from interface:IMultiReportOutputCloses the underlying resource container.- Specified by:
closein interfaceIMultiReportOutput- Throws:
IOException- if closing fails
-