org.codehaus.plexus.util.xml.pull
public class MXSerializer extends Object implements XmlSerializer
Implemented features:
Implemented properties:
Field Summary | |
---|---|
protected boolean | attributeUseApostrophe |
protected int | autoDeclaredPrefixes |
protected char[] | buf |
protected int | depth |
protected boolean | doIndent |
protected String[] | elName |
protected String[] | elNamespace |
protected int[] | elNamespaceCount |
protected boolean | finished |
protected String | FEATURE_NAMES_INTERNED |
protected String | FEATURE_SERIALIZER_ATTVALUE_USE_APOSTROPHE |
protected char[] | indentationBuf |
protected int | indentationJump |
protected String | indentationString |
protected String | lineSeparator |
protected String | location |
protected int | maxIndentLevel |
protected boolean | namesInterned |
protected int | namespaceEnd |
protected String[] | namespacePrefix |
protected String[] | namespaceUri |
protected int | offsetNewLine |
protected Writer | out |
protected boolean | pastRoot |
protected static String[] | precomputedPrefixes |
protected static String | PROPERTY_LOCATION |
protected String | PROPERTY_SERIALIZER_INDENTATION |
protected String | PROPERTY_SERIALIZER_LINE_SEPARATOR |
protected boolean | seenBracket |
protected boolean | seenBracketBracket |
protected boolean | seenTag |
protected boolean | setPrefixCalled |
protected boolean | startTagIncomplete |
protected boolean | writeIndentation |
protected boolean | writeLineSepartor |
protected static String | XMLNS_URI |
protected static String | XML_URI |
Method Summary | |
---|---|
XmlSerializer | attribute(String namespace, String name, String value) |
void | cdsect(String text) |
protected void | closeStartTag() |
void | comment(String text) |
void | docdecl(String text) |
void | endDocument() |
XmlSerializer | endTag(String namespace, String name) |
protected void | ensureElementsCapacity() |
protected void | ensureNamespacesCapacity() |
void | entityRef(String text) |
void | flush() |
int | getDepth() |
boolean | getFeature(String name) |
String | getName() |
String | getNamespace() |
String | getPrefix(String namespace, boolean generatePrefix) |
Object | getProperty(String name) |
Writer | getWriter() |
void | ignorableWhitespace(String text) |
protected String | lookupOrDeclarePrefix(String namespace) |
protected static String | printable(String s) simple utility method -- good for debugging |
protected static String | printable(char ch) |
void | processingInstruction(String text) |
protected void | rebuildIndentationBuf()
For maximum efficiency when writing indents the required output is pre-computed
This is internal function that recomputes buffer after user requested chnages. |
protected void | reset() |
void | setFeature(String name, boolean state) |
void | setOutput(Writer writer) |
void | setOutput(OutputStream os, String encoding) |
void | setPrefix(String prefix, String namespace) |
void | setProperty(String name, Object value) |
void | startDocument(String encoding, Boolean standalone) |
XmlSerializer | startTag(String namespace, String name) |
XmlSerializer | text(String text) |
XmlSerializer | text(char[] buf, int start, int len) |
protected void | writeAttributeValue(String value, Writer out) |
protected void | writeElementContent(String text, Writer out) |
protected void | writeElementContent(char[] buf, int off, int len, Writer out) |
protected void | writeIndent() |