Class DefaultXmlFormatter

  • All Implemented Interfaces:
    Formatter<java.lang.String>, XmlFormatter

    public class DefaultXmlFormatter
    extends java.lang.Object
    implements XmlFormatter
    Simply format the XML with a indent of 4.
    TODO: Make indent size and enable/disable state configurable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.lang.String xml)
      Format the data to a readable and loggable string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultXmlFormatter

        public DefaultXmlFormatter()
    • Method Detail

      • format

        public java.lang.String format​(java.lang.String xml)
        Description copied from interface: Formatter
        Format the data to a readable and loggable string.
        Specified by:
        format in interface Formatter<java.lang.String>
        Parameters:
        xml - the data to format
        Returns:
        the formatted string data