public class ZipMultiReportOutput extends Object implements IMultiReportOutput
IMultiReportOutput that writes files into a
ZipOutputStream.| Constructor and Description |
|---|
ZipMultiReportOutput(OutputStream out)
Creates a new instance based on the given
OutputStream. |
ZipMultiReportOutput(ZipOutputStream zip)
Creates a new instance based on the given
ZipOutputStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying resource container.
|
OutputStream |
createFile(String path)
Creates a file at the given local path.
|
public ZipMultiReportOutput(ZipOutputStream zip)
ZipOutputStream.zip - stream to write file entries topublic ZipMultiReportOutput(OutputStream out)
OutputStream.out - stream to write file entries topublic OutputStream createFile(String path) throws IOException
IMultiReportOutputOutputStream
has to be closed before the next document is created.createFile in interface IMultiReportOutputpath - local path to the new documentIOException - if the creation failspublic void close()
throws IOException
IMultiReportOutputclose in interface IMultiReportOutputIOException - if closing failsCopyright © 2009-2015 Mountainminds GmbH & Co. KG. All Rights Reserved.