Class HumanReadableBytesSerializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

    public class HumanReadableBytesSerializer
    extends com.fasterxml.jackson.databind.JsonSerializer<HumanReadableBytes>
    This serializer provides the basic support of JSON serialization of HumanReadableBytes to demonstrate serialization and deserialization work Given

    HumanReadableBytes bytes = new HumanReadableBytes("1K");

    will be serialized as 1000 instead of the raw input of 1K
    • Constructor Detail

      • HumanReadableBytesSerializer

        public HumanReadableBytesSerializer()