org.jacoco.report
Class ZipMultiReportOutput

java.lang.Object
  extended by 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:
0.4.1.20101007204400
Author:
Marc R. Hoffmann

Constructor Summary
ZipMultiReportOutput(ZipOutputStream zip)
          Creates a new instance based on the given ZipOutputStream.
 
Method Summary
 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

ZipMultiReportOutput

public ZipMultiReportOutput(ZipOutputStream zip)
Creates a new instance based on the given ZipOutputStream.

Parameters:
zip - stream to write file entries to
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