code: public void write(final AbstractIndex index)
  		throws IOException
  	{
  
  		StringBuilder cmd;
  
  		while (index.size() > 0) {
  
  			System.out.println("Transmit Index [" + index + "]");
  
  			cmd = index.remove();
  			// System.out.println(cmd.toString());
  
  			cmd.append("\r\n");
  			writer.write(cmd.toString());
  		}
  
  		writer.flush();
  	}
docs: Writes the buffered finalzed queries to the output.
  
  @param index
  Reference to an index
  @throws IOException
  if an error occurred while writing the output