Package org.jacoco.report
Class ZipMultiReportOutput
java.lang.Object
org.jacoco.report.ZipMultiReportOutput
- All Implemented Interfaces:
IMultiReportOutput
Implementation of
IMultiReportOutput
that writes files into a
ZipOutputStream
.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance based on the givenOutputStream
.Creates a new instance based on the givenZipOutputStream
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the underlying resource container.createFile
(String path) Creates a file at the given local path.
-
Field Details
-
zip
-
currentEntry
-
-
Constructor Details
-
ZipMultiReportOutput
Creates a new instance based on the givenZipOutputStream
.- Parameters:
zip
- stream to write file entries to
-
ZipMultiReportOutput
Creates a new instance based on the givenOutputStream
.- Parameters:
out
- stream to write file entries to
-
-
Method Details
-
createFile
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:
IOException
- if the creation fails
-
close
Description copied from interface:IMultiReportOutput
Closes the underlying resource container.- Specified by:
close
in interfaceIMultiReportOutput
- Throws:
IOException
- if closing fails
-