Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities
Class FileUtil

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.FileUtil

public final class FileUtil
extends Object

Various static helper methods to deal with files and file names.

Author:
Erich Schubert

Constructor Summary
FileUtil()
           
 
Method Summary
static String getFilenameExtension(File file)
          Returns the lower case extension of the selected file.
static String getFilenameExtension(String name)
          Returns the lower case extension of the selected file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

getFilenameExtension

public static String getFilenameExtension(File file)
Returns the lower case extension of the selected file. If no file is selected, null is returned.

Returns:
Returns the extension of the selected file in lower case or null

getFilenameExtension

public static String getFilenameExtension(String name)
Returns the lower case extension of the selected file. If no file is selected, null is returned.

Returns:
Returns the extension of the selected file in lower case or null

Release 0.2.1 (2009-07-13_1605)