Class Formatters


  • public final class Formatters
    extends java.lang.Object
    Author:
    Fabrizio Giudici
    • Constructor Summary

      Constructors 
      Constructor Description
      Formatters()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String format​(java.time.Duration duration)  
      static java.lang.String toBase64String​(byte[] bytes)  
      static java.lang.String toHexString​(byte[] bytes)  
      static java.lang.String xmlPrettyPrinted​(java.lang.String xml)  
      • Methods inherited from class java.lang.Object

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

      • Formatters

        public Formatters()
    • Method Detail

      • xmlPrettyPrinted

        @Nonnull
        public static java.lang.String xmlPrettyPrinted​(@Nonnull
                                                        java.lang.String xml)
      • format

        @Nonnull
        public static java.lang.String format​(@Nonnull
                                              java.time.Duration duration)
      • toHexString

        @Nonnull
        public static java.lang.String toHexString​(@Nonnull
                                                   byte[] bytes)
      • toBase64String

        @Nonnull
        public static java.lang.String toBase64String​(@Nonnull
                                                      byte[] bytes)