1 package net.sf.flatpack.writer; 2 3 import java.io.IOException; 4 5 /** 6 * 7 * @author Dirk Holmes and Holger Holger Hoffstatte 8 */ 9 public interface Writer { 10 /** put writer into header mode. TODO: how to handle multiple header lines? */ 11 void printHeader(); 12 13 /** put writer into footer mode. TODO: how to handle multiple footer lines? */ 14 void printFooter(); 15 16 void addRecordEntry(String columnName, Object value); 17 18 void nextRecord() throws IOException; 19 20 void flush() throws IOException; 21 22 void close() throws IOException; 23 }