Class MemoryPropertyEditor

  • All Implemented Interfaces:

    public class MemoryPropertyEditor
    extends PropertyEditorSupport
    Used by xbean to set longs.

    Important: Do not use this for other purposes than xbean, as property editors are not thread safe, and they are slow to use.

    Converts string values like "20 Mb", "1024kb", and "1g" to long values in bytes.