apollo.util
Class FileUtil

java.lang.Object
  extended by apollo.util.FileUtil

public class FileUtil
extends java.lang.Object


Constructor Summary
FileUtil()
           
 
Method Summary
static java.lang.String getExtension(java.io.File file)
          Get the extension for a File
static java.lang.String getExtension(java.lang.String fname)
          Get the extension of a String filename
 
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

getExtension

public static java.lang.String getExtension(java.io.File file)
Get the extension for a File

Parameters:
f - - File object to get the extension from
Returns:
the extension of the File object

getExtension

public static java.lang.String getExtension(java.lang.String fname)
Get the extension of a String filename

Parameters:
fname - - filename to get the extension from
Returns:
the extension of the filename