Class ByteObjectArrayStringConverterFactory

  • All Implemented Interfaces:
    StringConverterFactory

    public final class ByteObjectArrayStringConverterFactory
    extends java.lang.Object
    implements StringConverterFactory
    Factory for StringConverter providing support for Byte object array as a sequence of two letter hex codes for each byte plus '--' for null.

    This is intended as a human readable format, not a compact format.

    To use, simply register the instance with a StringConvert instance.

    This class is immutable and thread-safe.

    Since:
    1.5
    • Method Detail

      • findConverter

        public StringConverter<?> findConverter​(java.lang.Class<?> cls)
        Finds a converter by type.
        Specified by:
        findConverter in interface StringConverterFactory
        Parameters:
        cls - the type to lookup, not null
        Returns:
        the converter, null if not found
        Throws:
        java.lang.RuntimeException - (or subclass) if source code is invalid
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object