class SizeFormat {

    public static String format(long bytesCount) {
        Preconditions.checkArgument(bytesCount >= 0, "Formatting of a negative size is forbidden");

        return Unit.locateUnit(bytesCount)
            .format(bytesCount);
    }

}