Class Parser.XmlSerializer
java.lang.Object
de.bottlecaps.markup.blitz.Parser.XmlSerializer
- All Implemented Interfaces:
ResultHandler
- Enclosing class:
Parser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate intprivate booleanprivate booleanprivate static final Stringprivate StringBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReports an attribute, with its value given as codepoints.voidendElement(String name) Reports the end of an element.voidstartElement(String name) Reports the start of an element.voidtext(int[] codepoints, int length) Reports a run of codepoints of element content.
-
Field Details
-
INDENTATION
- See Also:
-
out
-
depth
private int depth -
delayedTag
private boolean delayedTag -
indent
private boolean indent -
hasChildElement
private boolean hasChildElement
-
-
Constructor Details
-
XmlSerializer
-
-
Method Details
-
startElement
Description copied from interface:ResultHandlerReports the start of an element.- Specified by:
startElementin interfaceResultHandler- Parameters:
name- the element name
-
endElement
Description copied from interface:ResultHandlerReports the end of an element.- Specified by:
endElementin interfaceResultHandler- Parameters:
name- the element name
-
attribute
Description copied from interface:ResultHandlerReports an attribute, with its value given as codepoints.- Specified by:
attributein interfaceResultHandler- Parameters:
name- the attribute namecodepoints- the codepoints holding the attribute valuelength- the number of codepoints in the value
-
text
public void text(int[] codepoints, int length) Description copied from interface:ResultHandlerReports a run of codepoints of element content.- Specified by:
textin interfaceResultHandler- Parameters:
codepoints- the Unicode code pointslength- the number of codepoints to report
-