public interface ZipAttachmentProvider
If a inventory printer implements this interface, the printer
can add additional attachments to the output of the
A service implementing this method must register itself as a
InventoryPrinter but not as a
When writing output to a ZIP file, this method is called if the
InventoryPrinter service implements this interface.
void addAttachments(ZipOutputStream zos, String namePrefix) throws IOException
The general pattern is to do for each entry to be added:
namePrefix and a name
unique to the attachement provider, e.g.
namePrefix + "att1.txt".
zos - The zip output stream.
namePrefix - Name prefix to use for zip entries. Ends with a slash.
IOException - If an error occurrs writing the ZIP entry. This may
also be caused by reading some file system file to be added
to the ZIP file.
Copyright © 2006–2013 The Apache Software Foundation. All rights reserved.