public static <
			A,
			G extends Gene<A, G>,
			C extends Chromosome<G>
		>
		io.jenetics.Genotype<G>
		read(final InputStream in, final Reader<? extends C> chromosomeReader)
			throws XMLStreamException
		{
			requireNonNull(chromosomeReader);
			requireNonNull(in);

			try (var xml = XML.reader(in)) {
				xml.next();
				return reader(chromosomeReader).read(xml);
			}
		}
Reads a genotype by using the given chromosome reader.

@param <A> the allele type
@param <G> the gene type
@param <C> the chromosome type
@param in the input stream to read the genotype from
@param chromosomeReader the used chromosome reader
@return a genotype by using the given chromosome reader
@throws XMLStreamException if reading the genotype fails
@throws NullPointerException if one of the arguments is {@code null}
jenetics.xml/src/main/java/io/jenetics/xml/Readers.java