code: public void write(final AbstractIndex index)
  		throws IOException
  	{
  
  		StringBuilder cmd;
  
  		while (index.size() > 0) {
  
  			System.out.println("Transmit Index [" + index + "]");
  
  			cmd = index.remove();
  
  			if(index instanceof ArticleIndex){
  				articleIdxWriter.write(cmd.toString());
  			}else if(index instanceof ChronoIndex){
  				chronoIdxWriter.write(cmd.toString());
  			}else if(index instanceof RevisionIndex){
  				revisionIdxWriter.write(cmd.toString());
  			}
  
  		}
  
  		if(index instanceof ArticleIndex){
  			articleIdxWriter.flush();
  		}else if(index instanceof ChronoIndex){
  			chronoIdxWriter.flush();
  		}else if(index instanceof RevisionIndex){
  			revisionIdxWriter.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