1 /*2 * EJTools, the Enterprise Java Tools3 *4 * Distributable under LGPL license.5 * See terms of license at www.gnu.org.6 */7 package org.ejtools.archive.io;8 9 import java.io.File ;10 import java.io.FileOutputStream ;11 import java.io.IOException ;12 import java.util.zip.ZipOutputStream ;13 14 /**15 * Writer implementation based on a File. The file is transformed into a stream.16 *17 * @author Laurent Etiemble18 * @version $Revision: 1.2 $19 */20 public class FileWriter extends StreamWriter21 {22 /**23 * Builds a FileWriter on a File24 *25 * @param file The File to write26 */27 public FileWriter(File file)28 {29 try30 {31 FileOutputStream fos = new FileOutputStream (file);32 this.pushZipOutputStream(new ZipOutputStream (fos));33 }34 catch (IOException ioe)35 {36 ioe.printStackTrace();37 }38 }39 }40