com.sun.jdo.api.persistence.enhancer.util
Class FilePath

java.lang.Object
  extended by com.sun.jdo.api.persistence.enhancer.util.FilePath

public class FilePath
extends Object

FilePath provides general file path manipulation utilities.


Constructor Summary
FilePath()
           
 
Method Summary
static String canonicalize(File file)
          Attempt to produce a canonical path name for the specified file
static boolean canonicalNamesEqual(String f1, String f2)
          Compare two "canonical" file names for equivalence
static String getAbsolutePath(File file)
          Return the absolute path for a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePath

public FilePath()
Method Detail

getAbsolutePath

public static String getAbsolutePath(File file)
Return the absolute path for a file. All directory separators are converted to be File.separatorChar


canonicalize

public static String canonicalize(File file)
Attempt to produce a canonical path name for the specified file


canonicalNamesEqual

public static boolean canonicalNamesEqual(String f1,
                                          String f2)
Compare two "canonical" file names for equivalence



Copyright © 2012. All Rights Reserved.