Package io.jenetics.xml
Class Readers.CharacterChromosome
- java.lang.Object
-
- io.jenetics.xml.Readers.CharacterChromosome
-
- Enclosing class:
- Readers
public static final class Readers.CharacterChromosome extends Object
Reader methods forCharacterChromosome
objects.XML format
<character-chromosome length="4"> <valid-alleles>ABCDEFGHIJKLMNOPQRSTUVWXYZ<valid-alleles> <alleles>ASDF</alleles> </character-chromosome>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CharacterChromosome
read(InputStream in)
Read a newCharacterChromosome
from the given input stream.static Reader<CharacterChromosome>
reader()
Return a XML reader forCharacterChromosome
objects.
-
-
-
Method Detail
-
reader
public static Reader<CharacterChromosome> reader()
Return a XML reader forCharacterChromosome
objects.- Returns:
- a chromosome reader
-
read
public static CharacterChromosome read(InputStream in) throws XMLStreamException
Read a newCharacterChromosome
from 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
-
-