jimm.twice.util
Class FileUtils

java.lang.Object
  extended byjimm.twice.util.FileUtils

public class FileUtils
extends java.lang.Object

Contains static utility methods useful when dealing with files that are subscription contents.

Author:
Jim Menard, jimm@io.com

Constructor Summary
FileUtils()
           
 
Method Summary
static java.lang.String uniqueFileName(java.lang.String directory, java.lang.String fileName)
          Given a path and file name, return a file name that is unique (this may be the same file name we are given if that name is already unique).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

uniqueFileName

public static java.lang.String uniqueFileName(java.lang.String directory,
                                              java.lang.String fileName)
Given a path and file name, return a file name that is unique (this may be the same file name we are given if that name is already unique).

Parameters:
directory - a directory path
fileName - a file name