class ReaderTGFF {

	protected Map<String, Double> importMessageSizes(Iterator<String> it) {

		Map<String, Double> sizes = new HashMap<String, Double>();
		String line;

		while (!isClosing(line = it.next())) {
			if (!isComment(line)) {
				String[] entries = line.trim().split(SEPARATOR);
				assert entries.length >= 2 : "tgff-file \"" + COMMUN_QUANT + "\": wrong number of entries";

				sizes.put(entries[0], Double.valueOf(entries[1]));
			}
		}
		return sizes;
	}

}