/** * Create an archive of the specified name and containing entries * for the data contained in the streams supplied entries arg. * specifying the entry name and the value is a InputStream containing * the entry data. * @param archiveStream The archive output stream. * @throws java.io.IOException Write failure. */ public void toOutputStream(ZipOutputStream archiveStream) throws IOException { AssertArgument.isNotNull(archiveStream, "archiveStream"); try { writeEntriesToArchive(archiveStream); } finally { try { archiveStream.flush(); } finally { try { archiveStream.close(); } catch (IOException e) { logger.info("Unable to close archive output stream."); } } } }
/** * Create an archive of the specified name and containing entries * for the data contained in the streams supplied entries arg. * specifying the entry name and the value is a InputStream containing * the entry data. * @param archiveStream The archive output stream. * @throws java.io.IOException Write failure. */ public void toOutputStream(ZipOutputStream archiveStream) throws IOException { AssertArgument.isNotNull(archiveStream, "archiveStream"); try { writeEntriesToArchive(archiveStream); } finally { try { archiveStream.flush(); } finally { try { archiveStream.close(); } catch (IOException e) { logger.info("Unable to close archive output stream."); } } } }
/** * Create an archive of the specified name and containing entries * for the data contained in the streams supplied entries arg. * specifying the entry name and the value is a InputStream containing * the entry data. * @param archiveStream The archive output stream. * @throws java.io.IOException Write failure. */ public void toOutputStream(ZipOutputStream archiveStream) throws IOException { AssertArgument.isNotNull(archiveStream, "archiveStream"); try { writeEntriesToArchive(archiveStream); } finally { try { archiveStream.flush(); } finally { try { archiveStream.close(); } catch (IOException e) { logger.info("Unable to close archive output stream."); } } } }