code: public void write(OutputStream os)
  	{
  		List<String> ids = new ArrayList<String>(score.keySet());
  		final Map<String, Integer> score = this.score;
  		Collections.sort(ids, new Comparator<String>()
  		{
  			@Override
  			public int compare(String o1, String o2)
  			{
  				return score.get(o2).compareTo(score.get(o1));
  			}
  		});
  
  		try
  		{
  			BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os));
  
  			boolean notFirst = false;
  
  			for (String id : ids)
  			{
  				if (notFirst) writer.write("\n");
  				else notFirst = true;
  
  				writer.write(id + DELIM + score.get(id) + DELIM + convertContext(context.get(id)));
  			}
  
  			writer.close();
  		}
  		catch (IOException e)
  		{
  			e.printStackTrace();
  		}
  	}
docs: Dumps data to the given output stream.
  
  @param os output stream