code: public static void writeProteinSequence(File file,
  			Collection<ProteinSequence> proteinSequences) throws Exception {
  		FileOutputStream outputStream = new FileOutputStream(file);
  		BufferedOutputStream bo = new BufferedOutputStream(outputStream);
  		writeProteinSequence(bo, proteinSequences);
  		bo.close();
  		outputStream.close();
  	}
docs: Write collection of protein sequences to a file
  
  @param file
  @param proteinSequences
  @throws Exception