commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons-sandbox/io/src/java/org/apache/commons/io FilenameUtils.java
Date Mon, 29 Dec 2003 05:59:18 GMT
bayard      2003/12/28 21:59:18

  Modified:    io/src/java/org/apache/commons/io FilenameUtils.java
  Log:
  fixed the links to point to FileUtils
  
  Revision  Changes    Path
  1.3       +9 -9      jakarta-commons-sandbox/io/src/java/org/apache/commons/io/FilenameUtils.java
  
  Index: FilenameUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/io/src/java/org/apache/commons/io/FilenameUtils.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FilenameUtils.java	27 Nov 2003 20:53:04 -0000	1.2
  +++ FilenameUtils.java	29 Dec 2003 05:59:18 -0000	1.3
  @@ -443,7 +443,7 @@
        * Delete a file. If file is directory delete it and all sub-directories.
        * @param file file or directory to delete.
        * @throws IOException in case deletion is unsuccessful
  -     * @deprecated Use {@link #forceDelete(File)}
  +     * @deprecated Use {@link FileUtils#forceDelete(File)}
        */
       public static void forceDelete(final String file) throws IOException {
           FileUtils.forceDelete(new File(file));
  @@ -455,7 +455,7 @@
        * Clean a directory without deleting it.
        * @param directory directory to clean
        * @throws IOException in case cleaning is unsuccessful
  -     * @deprecated Use {@link #cleanDirectory(File)}
  +     * @deprecated Use {@link FileUtils#cleanDirectory(File)}
        */
       public static void cleanDirectory(final String directory)
           throws IOException {
  @@ -467,7 +467,7 @@
        *
        * @param directory directory to inspect
        * @return size of directory in bytes.
  -     * @deprecated Use {@link #sizeOfDirectory(File)}
  +     * @deprecated Use {@link FileUtils#sizeOfDirectory(File)}
        */
       public static long sizeOfDirectory(final String directory) {
           return FileUtils.sizeOfDirectory(new File(directory));
  @@ -486,7 +486,7 @@
        * @throws IOException if <code>source</code> does not exist, the file
in
        * <code>destinationDirectory</code> cannot be written to, or an IO error
occurs during copying.
        *
  -     * @deprecated Use {@link #copyFileToDirectory(File, File)}
  +     * @deprecated Use {@link FileUtils#copyFileToDirectory(File, File)}
        */
       public static void copyFileToDirectory(
           final String source,
  @@ -499,7 +499,7 @@
        * Recursively delete a directory.
        * @param directory directory to delete
        * @throws IOException in case deletion is unsuccessful
  -     * @deprecated Use {@link #deleteDirectory(File)}
  +     * @deprecated Use {@link FileUtils#deleteDirectory(File)}
        */
       public static void deleteDirectory(final String directory)
           throws IOException {
  @@ -511,7 +511,7 @@
        * Matches the equally named unix command.
        * @param filename filename to inspect
        * @return The directory portion excluding the ending file separator.
  -     * @deprecated Use {@link #getPath(File)}
  +     * @deprecated Use {@link FileUtils#getPath(File)}
        * TODO DELETE before 1.0
        */
       public static String dirname(String filename) {
  @@ -523,7 +523,7 @@
        * Returns the filename portion of a file specification string.
        * @param filename filename to inspect
        * @return The filename string with extension.
  -     * @deprecated Use {@link #removeExtension(File)}
  +     * @deprecated Use {@link FileUtils#removeExtension(File)}
        * TODO DELETE before 1.0
        */
       public static String filename(String filename) {
  @@ -539,7 +539,7 @@
        * the dot).
        * @param filename filename to inspect
        * @return the extension
  -     * @deprecated Use {@link #getExtension(File)}
  +     * @deprecated Use {@link FileUtils#getExtension(File)}
        * TODO probably duplicate method. See getExtension
        */
       public static String extension(String filename) {
  
  
  

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


Mime
View raw message