Class DefaultXmlPrettyPrinter

    • Field Detail

      • _objectIndenter

        protected DefaultXmlPrettyPrinter.Indenter _objectIndenter
        By default, let's use linefeed-adding indenter for separate object entries. We'll further configure indenter to use system-specific linefeeds, and 2 spaces per level (as opposed to, say, single tabs)
      • _spacesInObjectEntries

        protected boolean _spacesInObjectEntries
        By default we will add spaces around colons used to separate object fields and values. If disabled, will not use spaces around colon.
      • _nesting

        protected transient int _nesting
        Number of open levels of nesting. Used to determine amount of indentation to use.
      • _justHadStartElement

        protected transient boolean _justHadStartElement
        Marker flag set on start element, and cleared if an end element is encountered. Used for suppressing indentation to allow empty elements.
        Since:
        2.3
    • Constructor Detail

      • DefaultXmlPrettyPrinter

        public DefaultXmlPrettyPrinter()