Class ByteConverter

  • All Implemented Interfaces:
    ObjectConverter

    public class ByteConverter
    extends NumberConverter
    Converter which converts Byte to String and converts it back.
    • Constructor Detail

      • ByteConverter

        public ByteConverter()
      • ByteConverter

        public ByteConverter​(java.text.NumberFormat format)
    • Method Detail

      • fromString

        public java.lang.Object fromString​(java.lang.String string,
                                           ConverterContext context)
        Description copied from interface: ObjectConverter
        Converts from String to an object.
        Parameters:
        string - the string
        context - context to be converted
        Returns:
        the object converted from string
      • supportFromString

        public boolean supportFromString​(java.lang.String string,
                                         ConverterContext context)
        Description copied from interface: ObjectConverter
        If it supports fromString.
        Parameters:
        string - the string
        context - context to be converted
        Returns:
        true if it supports