java.lang.Object
io.jenetics.xml.Readers.CharacterChromosome
- Enclosing class:
Readers
Reader methods for
CharacterChromosome objects.
XML format
<character-chromosome length="4">
<valid-alleles>ABCDEFGHIJKLMNOPQRSTUVWXYZ<valid-alleles>
<alleles>ASDF</alleles>
</character-chromosome>
-
Method Summary
Modifier and TypeMethodDescriptionstatic CharacterChromosomeread(InputStream in) Read a newCharacterChromosomefrom the given input stream.static Reader<CharacterChromosome> reader()Return a XML reader forCharacterChromosomeobjects.
-
Method Details
-
reader
Return a XML reader forCharacterChromosomeobjects.- Returns:
- a chromosome reader
-
read
Read a newCharacterChromosomefrom the given input stream.- Parameters:
in- the data source of the chromosome- Returns:
- the bit-chromosome read from the input stream
- Throws:
XMLStreamException- if reading the chromosome failsNullPointerException- if the given input stream isnull
-