protected void writeEntries ( final StorageAwareResource resource , final ZipOutputStream zipOut ) throws IOException { final BufferedOutputStream bufferedOutput = new BufferedOutputStream ( zipOut ) ; ZipEntry _zipEntry = new ZipEntry ( "emf-contents" ) ; zipOut . putNextEntry ( _zipEntry ) ; try { this . writeContents ( resource , bufferedOutput ) ; } finally { bufferedOutput . flush ( ) ; zipOut . closeEntry ( ) ; } ZipEntry _zipEntry_1 = new ZipEntry ( "resource-description" ) ; zipOut . putNextEntry ( _zipEntry_1 ) ; try { this . writeResourceDescription ( resource , bufferedOutput ) ; } finally { bufferedOutput . flush ( ) ; zipOut . closeEntry ( ) ; } if ( this . storeNodeModel ) { ZipEntry _zipEntry_2 = new ZipEntry ( "node-model" ) ; zipOut . putNextEntry ( _zipEntry_2 ) ; try { this . writeNodeModel ( resource , bufferedOutput ) ; } finally { bufferedOutput . flush ( ) ; zipOut . closeEntry ( ) ; } } }
Write entries into the storage . Overriding methods should first delegate to super before adding their own entries .