org.argoprint.util
Class FileUtil

java.lang.Object
  extended by org.argoprint.util.FileUtil

public class FileUtil
extends java.lang.Object

This class contains file-related utility methods.

Author:
mfortner

Constructor Summary
FileUtil()
           
 
Method Summary
static java.lang.String getExtension(java.io.File file)
          This method gets the extension of a file.
static java.lang.String getExtension(java.lang.String filename)
          This method gets the extension of a file
 
Methods inherited from class java.lang.Object
equals, 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)
This method gets the extension of a file.

Parameters:
file - The file whose extension you want.
Returns:
The file extension, or null if no extension exists.

getExtension

public static java.lang.String getExtension(java.lang.String filename)
This method gets the extension of a file

Parameters:
filename - The name of the file.
Returns:
The file extension, or null if no extension exists.