title: Formatting file sizes in Java/JSTL
body: <p>I was wondering if anyone knew of a good way to format files sizes in Java/JSP/JSTL pages.  </p>
  
  <p>Is there a util class that with do this?<br>
  I've searched commons but found nothing. Any custom tags?<br>
  Does a library already exist for this?</p>
  
  <p>Ideally I'd like it to behave like the <strong>-h</strong> switch on Unix's <strong>ls</strong> command</p>
  
  <p>34 -> 34<br>
  795  -> 795<br>
  2646 -> 2.6K<br>
  2705 -> 2.7K<br>
  4096 -> 4.0K<br>
  13588 -> 14K<br>
  28282471 -> 27M<br>
  28533748 -> 28M  </p>