Package nl.knaw.dans.convert.jackson
Class StringByteSizeConverter
public class StringByteSizeConverter
extends com.fasterxml.jackson.databind.util.StdConverter<String,Long>
Converts a string representation of a byte size to a long. The string can be a number, optionally followed by a suffix
indicating the unit. The following suffixes are supported:
- K or KB for kilobytes
- M or MB for megabytes
- G or GB for gigabytes
- T or TB for terabytes
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.util.Converter
com.fasterxml.jackson.databind.util.Converter.None
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.fasterxml.jackson.databind.util.StdConverter
_findConverterType, getInputType, getOutputType