commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: [LANG] support for k, M suffices when parsing numbers
Date Thu, 02 Jun 2011 13:59:07 GMT
On Thu, Jun 2, 2011 at 9:55 AM, sebb <sebbaz@gmail.com> wrote:
>
> They specifically wanted Tomcat to support the suffices k and m that
> can be used when providing memory sizes to the Java -Xmx etc options.
>
> So yes, I guess the multiplier is 1024 here.
>

So, perhaps a MemUtils class?  And perhaps a method like:

public long parseBytes(String input);

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message