commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject cvs commit: jakarta-commons-sandbox/rupert/src/java/org/apache/commons/rupert/christoph FileTool.java
Date Thu, 06 Dec 2001 13:50:50 GMT
jvanzyl     01/12/06 05:50:50

  Modified:    rupert/src/java/org/apache/commons/rupert/christoph
                        FileTool.java
  Log:
  - deprecating methods moved to commons-util FileUtils class
  
  Revision  Changes    Path
  1.2       +12 -1     jakarta-commons-sandbox/rupert/src/java/org/apache/commons/rupert/christoph/FileTool.java
  
  Index: FileTool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/rupert/src/java/org/apache/commons/rupert/christoph/FileTool.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FileTool.java	2001/06/19 11:43:12	1.1
  +++ FileTool.java	2001/12/06 13:50:50	1.2
  @@ -73,7 +73,7 @@
    *
    * @company      Deutsches Zentrum fuer Luft- und Raumfahrt<p>
    * @author       Christoph.Reck@dlr.de
  - * @version  $Id: FileTool.java,v 1.1 2001/06/19 11:43:12 geirm Exp $
  + * @version  $Id: FileTool.java,v 1.2 2001/12/06 13:50:50 jvanzyl Exp $
    */
   public class FileTool
   {
  @@ -97,6 +97,7 @@
       /**
        * Returns the directory path portion of a file specification string.
        * Matches the equally named unix command.
  +     * @deprecated Moved to commons-util FileUtils
        * @return The directory portion excluding the ending file separator.
        */
       public static String dirname(String filename)
  @@ -107,6 +108,7 @@
   
       /**
        * Returns the filename portion of a file specification string.
  +     * @deprecated Moved to commons-util FileUtils
        * @return The filename string with extension.
        */
       public static String filename(String filename)
  @@ -118,6 +120,7 @@
       /**
        * Returns the filename portion of a file specification string.
        * Matches the equally named unix command.
  +     * @deprecated Moved to commons-util FileUtils
        * @return The filename string without extension.
        */
       public static String basename(String filename)
  @@ -128,6 +131,7 @@
       /**
        * Returns the filename portion of a file specification string.
        * Matches the equally named unix command.
  +     * @deprecated Moved to commons-util FileUtils
        */
       public static String basename(String filename, String suffix)
       {
  @@ -147,6 +151,7 @@
        * Returns the extension portion of a file specification string.
        * This everything after the last dot '.' in the filename (including
        * the dot).
  +     * @deprecated Moved to commons-util FileUtils
        */
       public static String extension(String filename)
       {
  @@ -161,6 +166,7 @@
       /**
        * Check if a file exits.
        *
  +     * @deprecated Moved to commons-util FileUtils
        * @param fileName The name of the file to check.
        * @return true if file exists.
        */
  @@ -173,6 +179,7 @@
       /**
        * Reads the contents of a file.
        *
  +     * @deprecated Moved to commons-util FileUtils
        * @param fileName The name of the file to read.
        * @return The file contents or null if read failed.
        */
  @@ -195,6 +202,7 @@
       /**
        * Writes data to a file. The file will be created if it does not exist.
        *
  +     * @deprecated Moved to commons-util FileUtils
        * @param fileName The name of the file to write.
        * @param data The content to write to the file.
        */
  @@ -208,6 +216,7 @@
       /**
        * Deletes a file.
        *
  +     * @deprecated Moved to commons-util FileUtils
        * @param fileName The name of the file to delete.
        */
       public static void fileDelete(String fileName)
  @@ -219,6 +228,7 @@
       /**
        * Waits for NFS to propagate a file creation, imposing a timeout.
        *
  +     * @deprecated Moved to commons-util FileUtils
        * @param fileName The name of the file.
        * @param seconds The maximum time in seconds to wait.
        * @return True if file exists.
  @@ -254,6 +264,7 @@
       /**
        * Creates a file handle.
        *
  +     * @deprecated Moved to commons-util FileUtils
        * @param fileName The name of the file.
        * @return A <code>File</code> instance.
        */
  
  
  

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


Mime
View raw message