1 /* 2 * 3 * 4 */ 5 package zipdiff.output; 6 7 import zipdiff.Differences; 8 import java.io.*; 9 10 /*** 11 * 12 * @author Sean C. Sullivan 13 * 14 * 15 * 16 */ 17 public abstract class AbstractBuilder 18 implements Builder 19 { 20 public void build(String filename, Differences d) throws IOException 21 { 22 FileOutputStream fos = null; 23 24 fos = new FileOutputStream(filename); 25 build(fos, d); 26 fos.flush(); 27 } 28 29 public abstract void build(OutputStream out, Differences d); 30 }