Skip to content

Commit 14978fe

Browse files
author
Niall Pemberton
committed
IO-149 Make FilenameUtils.EXTENSION_SEPARATOR public - proposed by Gary Gregory
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@609870 13f79535-47bb-0310-9956-ffa450edef68
1 parent fa3da43 commit 14978fe

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

RELEASE-NOTES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ Enhancements from 1.3.2
4747
- FileUtils
4848
- Add a deleteQuietly method [IO-135]
4949

50+
- FilenameUtils
51+
- Add file name extension separator constants[IO-149]
52+
5053
- IOExceptionWithCause [IO-148]
5154
- Add a new IOException implementation with constructors which take a cause
5255

src/java/org/apache/commons/io/FilenameUtils.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,15 @@ public class FilenameUtils {
9494

9595
/**
9696
* The extension separator character.
97+
* @since Commons IO 1.4
9798
*/
98-
private static final char EXTENSION_SEPARATOR = '.';
99+
public static final char EXTENSION_SEPARATOR = '.';
100+
101+
/**
102+
* The extension separator String.
103+
* @since Commons IO 1.4
104+
*/
105+
public static final String EXTENSION_SEPARATOR_STR = (new Character(EXTENSION_SEPARATOR)).toString();
99106

100107
/**
101108
* The Unix separator character.

0 commit comments

Comments
 (0)