Class PrettyPrinter


  • public class PrettyPrinter
    extends Object
    Author:
    semancik
    • Constructor Detail

      • PrettyPrinter

        public PrettyPrinter()
    • Method Detail

      • setDefaultNamespacePrefix

        public static void setDefaultNamespacePrefix​(String prefix)
      • prettyPrint

        public static String prettyPrint​(Collection<?> collection,
                                         int maxItems)
      • prettyPrint

        public static String prettyPrint​(QName qname)
      • qnameToString

        public static String qnameToString​(QName name)
      • prettyPrint

        public static String prettyPrint​(List<Element> list)
        Assumes that all elements in the lists have the same QName
        Parameters:
        list -
        Returns:
      • prettyPrint

        public static String prettyPrint​(Node node)
      • prettyPrint

        public static String prettyPrint​(Element element)
      • prettyPrint

        public static String prettyPrint​(Element element,
                                         boolean displayTag)
      • prettyPrint

        public static String prettyPrint​(Date date)
      • prettyPrint

        public static String prettyPrint​(Object[] value)
      • prettyPrint

        public static String prettyPrint​(byte[] value)
      • prettyPrint

        public static String prettyPrint​(Object value)
      • debugDump

        public static String debugDump​(Object value,
                                       int indent)
      • registerPrettyPrinter

        public static void registerPrettyPrinter​(Class<?> printerClass)
      • getPrettyPrinters

        public static List<Class<?>> getPrettyPrinters()