|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEncoder
public final class Encoder
A genetic encoder.
Constructor Summary | |
---|---|
Encoder(Element gg,
List<Element> gList,
Replacer clipGeneReplacer,
StringBuilder stringBuilder,
UUIDStringifier uuidStringifier)
Creates an Encoder for a document. |
Method Summary | |
---|---|
static Document |
encoded(InputStream in,
TransformerFactory transformerFactory,
DOMErrorHandler errorHandler)
Returns a Recombinant XHTML document read from an input stream, and then encoded. |
void |
encodeRecursively(Node node)
Encodes the node and its descendants. |
static boolean |
isMarginal(Element element)
Answers whether the element is abutted with the left margin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
Encoder(Element gg, List<Element> gList, Replacer clipGeneReplacer, StringBuilder stringBuilder, UUIDStringifier uuidStringifier)
gg
- the 'g' list ('gg') element of the documentgList
- live list of gene meta-data ('g') elements in 'gg'
(e.g. backed by a NodeList)clipGeneReplacer
- to usestringBuilder
- string builder to use, overwriting its existing contentuuidStringifier
- UUID stringifier to useMethod Detail |
---|
public static Document encoded(InputStream in, TransformerFactory transformerFactory, DOMErrorHandler errorHandler) throws IOException, LSException, TextbenderException, TransformerException
in
- stream to read document fromtransformerFactory
- to useerrorHandler
- to use
IOException
- from Replacer
to the provided errorHandler
TextbenderException
- if document not in recombinant form
TransformerException
- from replaceRecursively, new Replacer
LSException
public void encodeRecursively(Node node) throws TransformerException
TransformerException
public static boolean isMarginal(Element element)
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |