public synchronized void append(Record record) throws IOException, SQLException {
  records.add(record);
  if (AUTO_WRITE && records.size() > MAX_LENGTH) {
    flush();
  }
}

public synchronized void append ( Record record ) throws IOException , SQLException { records . add ( record ) ; if ( AUTO_WRITE && records . size ( ) > MAX_LENGTH ) { flush ( ) ; } }
write a record to the writer
