diff options
Diffstat (limited to 'src/classes/com/sun/opengl/util/FileUtil.java')
-rwxr-xr-x | src/classes/com/sun/opengl/util/FileUtil.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/classes/com/sun/opengl/util/FileUtil.java b/src/classes/com/sun/opengl/util/FileUtil.java index 6ff3e2bbd..2971de636 100755 --- a/src/classes/com/sun/opengl/util/FileUtil.java +++ b/src/classes/com/sun/opengl/util/FileUtil.java @@ -47,10 +47,14 @@ public class FileUtil { private FileUtil() {} /** - * Returns the suffix of the given file name for identifying the - * file to the configured TextureProviders. + * Returns the lowercase suffix of the given file name (the text + * after the last '.' in the file name). Returns null if the file + * name has no suffix. Only operates on the given file name; + * performs no I/O operations. * * @param file name of the file + * @return lowercase suffix of the file name + * @throws NullPointerException if file is null */ public static String getFileSuffix(File file) { @@ -58,10 +62,14 @@ public class FileUtil { } /** - * Returns the suffix of the given file name for identifying the - * file to the configured TextureProviders. + * Returns the lowercase suffix of the given file name (the text + * after the last '.' in the file name). Returns null if the file + * name has no suffix. Only operates on the given file name; + * performs no I/O operations. * * @param filename name of the file + * @return lowercase suffix of the file name + * @throws NullPointerException if filename is null */ public static String getFileSuffix(String filename) { int lastDot = filename.lastIndexOf('.'); |