code: public void write(Object[] record) throws IOException, DbaseFileException {
  
  		if (record.length != header.getNumFields()) {
  			throw new DbaseFileException("Wrong number of fields "
  					+ record.length + " expected " + header.getNumFields());
  		}
  
  		buffer.position(0);
  
  		// put the 'not-deleted' marker
  		buffer.put((byte) ' ');
  
  		for (int i = 0; i < header.getNumFields(); i++) {
  			String fieldString = fieldString(record[i], i);
  			if (header.getFieldLength(i) != fieldString
  					.getBytes(charset.name()).length) {
  				buffer.put(new byte[header.getFieldLength(i)]);
  			} else {
  				buffer.put(fieldString.getBytes(charset.name()));
  			}
  
  		}
  
  		write();
  	}
docs: Write a single dbase record.
  
  @param record
  The entries to write.
  @throws java.io.IOException
  If IO error occurs.
  @throws DbaseFileException
  If the entry doesn't comply to the header.