- All Superinterfaces:
tools.jackson.core.PrettyPrinter
- All Known Implementing Classes:
DefaultXmlPrettyPrinter
public interface XmlPrettyPrinter
extends tools.jackson.core.PrettyPrinter
There are some XML-specific quirks that need extra TLC when
indenting: so we will use a refinement of general purpose one.
-
Field Summary
Fields inherited from interface tools.jackson.core.PrettyPrinter
DEFAULT_ROOT_VALUE_SEPARATOR, DEFAULT_SEPARATORS -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteEndElement(org.codehaus.stax2.XMLStreamWriter2 sw, int nrOfEntries) Method for forcibly writing an end element, without going through Jackson generator (and thus, without updating currently active element stack)voidwriteLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, boolean value) voidwriteLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, char[] buffer, int offset, int len, boolean isCData) voidwriteLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, double value) voidwriteLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, float value) voidwriteLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, int value) voidwriteLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, long value) voidwriteLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, String text, boolean isCData) voidwriteLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, BigDecimal value) voidwriteLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, BigInteger value) voidwriteLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, org.codehaus.stax2.typed.Base64Variant base64variant, byte[] data, int offset, int len) voidwriteLeafNullElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName) voidwriteLeafXsiNilElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName) voidwritePrologLinefeed(org.codehaus.stax2.XMLStreamWriter2 sw) Method for trying to write a linefeed to separate entities outside of the root element (that is, in prolog or epilog), most often called to separate XML declaration from the root element.voidwriteStartElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName) Method for forcibly writing a start element, without going through Jackson generator (and thus, without updating currently active element stack)Methods inherited from interface tools.jackson.core.PrettyPrinter
beforeArrayValues, beforeObjectEntries, writeArrayValueSeparator, writeEndArray, writeEndObject, writeObjectEntrySeparator, writeObjectNameValueSeparator, writeRootValueSeparator, writeStartArray, writeStartObject
-
Method Details
-
writeStartElement
void writeStartElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName) throws XMLStreamException Method for forcibly writing a start element, without going through Jackson generator (and thus, without updating currently active element stack)- Throws:
XMLStreamException
-
writeEndElement
void writeEndElement(org.codehaus.stax2.XMLStreamWriter2 sw, int nrOfEntries) throws XMLStreamException Method for forcibly writing an end element, without going through Jackson generator (and thus, without updating currently active element stack)- Throws:
XMLStreamException
-
writePrologLinefeed
Method for trying to write a linefeed to separate entities outside of the root element (that is, in prolog or epilog), most often called to separate XML declaration from the root element.- Throws:
XMLStreamException
-
writeLeafElement
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, String text, boolean isCData) throws XMLStreamException - Throws:
XMLStreamException
-
writeLeafElement
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, char[] buffer, int offset, int len, boolean isCData) throws XMLStreamException - Throws:
XMLStreamException
-
writeLeafElement
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, boolean value) throws XMLStreamException - Throws:
XMLStreamException
-
writeLeafElement
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, int value) throws XMLStreamException - Throws:
XMLStreamException
-
writeLeafElement
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, long value) throws XMLStreamException - Throws:
XMLStreamException
-
writeLeafElement
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, double value) throws XMLStreamException - Throws:
XMLStreamException
-
writeLeafElement
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, float value) throws XMLStreamException - Throws:
XMLStreamException
-
writeLeafElement
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, BigInteger value) throws XMLStreamException - Throws:
XMLStreamException
-
writeLeafElement
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, BigDecimal value) throws XMLStreamException - Throws:
XMLStreamException
-
writeLeafElement
void writeLeafElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName, org.codehaus.stax2.typed.Base64Variant base64variant, byte[] data, int offset, int len) throws XMLStreamException - Throws:
XMLStreamException
-
writeLeafNullElement
void writeLeafNullElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName) throws XMLStreamException - Throws:
XMLStreamException
-
writeLeafXsiNilElement
void writeLeafXsiNilElement(org.codehaus.stax2.XMLStreamWriter2 sw, String nsURI, String localName) throws XMLStreamException - Throws:
XMLStreamException
-