out.putNextEntry(zipEntry);
int c = -1;
while ((c = source.read()) >= 0) {
out.write(c);
}
out.closeEntry();
// Add manifest (required for OOo 2.0), "meta.xml", "mimetype" files. These are in the
// resource/openoffice directory, and are copied verbatim into the zip file.
addResourceFile("meta.xml", "/resource/openoffice/meta.xml", out);
addResourceFile("mimetype", "/resource/openoffice/mimetype", out);