org.apache.turbine.util
Class FileUtils

java.lang.Object
  extended byorg.apache.turbine.util.FileUtils

Deprecated. This class will be removed after the 2.3 release. Please use FileUtils from commons-io.

public class FileUtils
extends java.lang.Object

Common File manipulation routines.

Version:
$Id: FileUtils.java 264148 2005-08-29 14:21:04Z henning $
Author:
Daniel Rall

Field Summary
static int ONE_GB
          Deprecated. The number of bytes in a gigabyte.
static int ONE_KB
          Deprecated. The number of bytes in a kilobyte.
static int ONE_MB
          Deprecated. The number of bytes in a megabyte.
 
Constructor Summary
FileUtils()
          Deprecated.  
 
Method Summary
static java.lang.String byteCountToDisplaySize(int size)
          Deprecated. 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
Deprecated. 
The number of bytes in a kilobyte.

See Also:
Constant Field Values

ONE_MB

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

See Also:
Constant Field Values

ONE_GB

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

See Also:
Constant Field Values
Constructor Detail

FileUtils

public FileUtils()
Deprecated. 
Method Detail

byteCountToDisplaySize

public static java.lang.String byteCountToDisplaySize(int size)
Deprecated. 
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-2005 Apache Software Foundation. All Rights Reserved.