org.jacoco.report
Class ZipMultiReportOutput
java.lang.Object
org.jacoco.report.ZipMultiReportOutput
- All Implemented Interfaces:
- IMultiReportOutput
public class ZipMultiReportOutput
- extends Object
- implements IMultiReportOutput
Implementation of IMultiReportOutput
that writes files into a
ZipOutputStream
.
- Version:
- $Revision: $
- Author:
- Marc R. Hoffmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipMultiReportOutput
public ZipMultiReportOutput(ZipOutputStream zip)
- Creates a new instance based on the given
ZipOutputStream
.
- Parameters:
zip
- stream to write file entries to
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