Как преобразовать размер байта в читаемый человеком формат в Java? Как 1024 должно стать "1 КБ", а 1024 * 1024 должно стать "1 МБ".
Я как бы устал писать этот метод утилиты для каждого проекта. Существуют ли какие-либо статические методы в Apache Commons для этого?