1 29 package net.sourceforge.groboutils.pmti.v1.autodoc.v1.server; 30 31 import java.io.File ; 32 import java.io.IOException ; 33 import java.io.Writer ; 34 import java.io.FileWriter ; 35 36 import net.sourceforge.groboutils.autodoc.v1.testserver.AbstractWriterServer; 37 import net.sourceforge.groboutils.autodoc.v1.testserver.TestData; 38 39 40 49 public abstract class AbstractAppendFileServer extends AbstractWriterServer 50 { 51 private File file; 52 53 public AbstractAppendFileServer( File f ) 54 { 55 if (f == null) 56 { 57 throw new IllegalArgumentException ("no null arguments"); 58 } 59 this.file = f; 60 } 61 62 63 67 protected Writer openOutput( TestData td ) 68 throws IOException 69 { 70 FileWriter fw = new FileWriter ( this.file.getAbsolutePath(), true ); 72 return fw; 73 } 74 } 75 76 | Popular Tags |