commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r609870 - in /commons/proper/io/trunk: RELEASE-NOTES.txt src/java/org/apache/commons/io/FilenameUtils.java
Date Tue, 08 Jan 2008 04:46:27 GMT
Author: niallp
Date: Mon Jan  7 20:46:26 2008
New Revision: 609870

URL: http://svn.apache.org/viewvc?rev=609870&view=rev
Log:
IO-149 Make FilenameUtils.EXTENSION_SEPARATOR public - proposed by Gary Gregory

Modified:
    commons/proper/io/trunk/RELEASE-NOTES.txt
    commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java

Modified: commons/proper/io/trunk/RELEASE-NOTES.txt
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/RELEASE-NOTES.txt?rev=609870&r1=609869&r2=609870&view=diff
==============================================================================
--- commons/proper/io/trunk/RELEASE-NOTES.txt (original)
+++ commons/proper/io/trunk/RELEASE-NOTES.txt Mon Jan  7 20:46:26 2008
@@ -47,6 +47,9 @@
 - FileUtils
   - Add a deleteQuietly method [IO-135]
 
+- FilenameUtils
+  - Add file name extension separator constants[IO-149]
+
 - IOExceptionWithCause [IO-148]
   - Add a new IOException implementation with constructors which take a cause
 

Modified: commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java?rev=609870&r1=609869&r2=609870&view=diff
==============================================================================
--- commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java (original)
+++ commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java Mon Jan  7 20:46:26
2008
@@ -94,8 +94,15 @@
 
     /**
      * The extension separator character.
+     * @since Commons IO 1.4
      */
-    private static final char EXTENSION_SEPARATOR = '.';
+    public static final char EXTENSION_SEPARATOR = '.';
+
+    /**
+     * The extension separator String.
+     * @since Commons IO 1.4
+     */
+    public static final String EXTENSION_SEPARATOR_STR = (new Character(EXTENSION_SEPARATOR)).toString();
 
     /**
      * The Unix separator character.



Mime
View raw message