public class FileUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFileSuffix(java.io.File file)
Returns the lowercase suffix of the given file name (the text
after the last '.' in the file name).
|
static java.lang.String |
getFileSuffix(java.lang.String filename)
Returns the lowercase suffix of the given file name (the text
after the last '.' in the file name).
|
public static java.lang.String getFileSuffix(java.io.File file)
file
- name of the filejava.lang.NullPointerException
- if file is nullpublic static java.lang.String getFileSuffix(java.lang.String filename)
filename
- name of the filejava.lang.NullPointerException
- if filename is nullCopyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.