org.apache.turbine.util
Class FileUtils

java.lang.Object
  |
  +--org.apache.turbine.util.FileUtils

public class FileUtils
extends java.lang.Object

Common File manipulation routines.

Version:
$Id: FileUtils.java,v 1.1.1.1 2001/08/16 05:09:39 jvanzyl Exp $
Author:
Daniel Rall

Field Summary
static int ONE_GB
          The number of bytes in a gigabyte.
static int ONE_KB
          The number of bytes in a kilobyte.
static int ONE_MB
          The number of bytes in a megabyte.
 
Constructor Summary
FileUtils()
           
 
Method Summary
static java.lang.String byteCountToDisplaySize(int size)
          Returns a human-readable version of the file size (original is in bytes).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONE_KB

public static final int ONE_KB
The number of bytes in a kilobyte.

ONE_MB

public static final int ONE_MB
The number of bytes in a megabyte.

ONE_GB

public static final int ONE_GB
The number of bytes in a gigabyte.
Constructor Detail

FileUtils

public FileUtils()
Method Detail

byteCountToDisplaySize

public static java.lang.String byteCountToDisplaySize(int size)
Returns a human-readable version of the file size (original is in bytes).
Parameters:
size - The number of bytes.
Returns:
A human-readable display value (includes units).


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.