gov.nih.nci.caarray.services.util.file
Class FileUtility

java.lang.Object
  extended by gov.nih.nci.caarray.services.util.file.FileUtility

public class FileUtility
extends java.lang.Object

Provides utility functions to assist in local file system management.

Author:
ETavela

Method Summary
static java.lang.String getExtension(java.io.File file)
          Returns the extension part of the file's name.
static java.lang.String getExtension(java.lang.String filename)
          Returns the extension part of the file's name.
static java.lang.String stripExtension(java.lang.String fileName)
          Returns the given filename with the extension (if any) stripped out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getExtension

public static java.lang.String getExtension(java.lang.String filename)
Returns the extension part of the file's name.

Parameters:
filename - get the extension from this file name.
Returns:
the file extension.

getExtension

public static java.lang.String getExtension(java.io.File file)
Returns the extension part of the file's name.

Parameters:
file - get the extension of this file.
Returns:
the file extension.

stripExtension

public static java.lang.String stripExtension(java.lang.String fileName)
Returns the given filename with the extension (if any) stripped out.

Parameters:
fileName - the filename
Returns:
the filename with the extension removed.