public static final class Writers.CharacterChromosome extends Object
CharacterChromosome objects.
Writer code
final CharacterChromosome value = CharacterChromosome.of("ASDF", CharSeq.of("A-Z"));
try (AutoCloseableXMLStreamWriter xml = XML.writer(System.out, " ")) {
Writers.CharacterChromosome.writer().write(value, xml);
}
<character-chromosome length="4">
<valid-alleles>ABCDEFGHIJKLMNOPQRSTUVWXYZ<valid-alleles>
<alleles>ASDF</alleles>
</character-chromosome>
| Modifier and Type | Method and Description |
|---|---|
static void |
write(OutputStream out,
CharacterChromosome data)
Write the given
CharacterChromosome to the given
output stream. |
static void |
write(OutputStream out,
CharacterChromosome data,
String indent)
Write the given
CharacterChromosome to the given
output stream. |
static Writer<CharacterChromosome> |
writer()
Return a
Writer for CharacterChromosome
objects. |
public static Writer<CharacterChromosome> writer()
Writer for CharacterChromosome
objects.public static void write(OutputStream out, CharacterChromosome data, String indent) throws XMLStreamException
CharacterChromosome to the given
output stream.out - the target output streamdata - the chromosome to writeindent - the XML level indentationXMLStreamException - if an error occurs while writing the
chromosomeNullPointerException - if the chromosome or output
stream is nullpublic static void write(OutputStream out, CharacterChromosome data) throws XMLStreamException
CharacterChromosome to the given
output stream.out - the target output streamdata - the chromosome to writeXMLStreamException - if an error occurs while writing the
chromosomeNullPointerException - if the chromosome or output
stream is null© 2007-2019 Franz Wilhelmstötter (2019-11-18 20:30)