OutputStream out = new FileOutputStream(tmpFile);
if (out != null) {
// Create a zip output on file
zipOut = new ZipOutputStream(out);
// Write furniture description file in first entry
zipOut.putNextEntry(new ZipEntry(DefaultFurnitureCatalog.PLUGIN_FURNITURE_CATALOG_FAMILY + ".properties"));
writeFurnitureLibraryProperties(zipOut, furnitureLibrary, furnitureLibraryFile,
offlineFurnitureLibrary, contentMatchingFurnitureName,
furnitureResourcesRemoteAbsoluteUrlBase, furnitureResourcesRemoteRelativeUrlBase,
contentEntries);
zipOut.closeEntry();
// Write supported languages description files
for (String language : furnitureLibrary.getSupportedLanguages()) {
if (!FurnitureLibrary.DEFAULT_LANGUAGE.equals(language)) {
zipOut.putNextEntry(new ZipEntry(DefaultFurnitureCatalog.PLUGIN_FURNITURE_CATALOG_FAMILY + "_" + language + ".properties"));
writeFurnitureLibraryLocalizedProperties(zipOut, furnitureLibrary, language);
zipOut.closeEntry();
}
}
// Write Content objects in files