net.sf.jpackit.util
Class FileUtils

java.lang.Object
  extended by net.sf.jpackit.util.FileUtils

public final class FileUtils
extends java.lang.Object

File system utilities

Version:
$Id: FileUtils.java,v 1.3 2005/02/22 10:02:28 ignath Exp $
Author:
Ignat Aleksandrov

Method Summary
static java.lang.String appendFileSeparatorIfNecessary(java.lang.String path)
          Adds to path the separator ('/' or '\') if it isn't present already
static java.lang.String getCanonicalPath(java.lang.String path)
          Returns the canonical pathname string of given pathname.
static java.lang.String getTempDir()
          Get the path to the directory for the temporary files (OS dependant)

(Copied from java.io.File.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTempDir

public static java.lang.String getTempDir()
Get the path to the directory for the temporary files (OS dependant)

(Copied from java.io.File. Don't know why it's private there)

Returns:
path to temporary files directory

appendFileSeparatorIfNecessary

public static java.lang.String appendFileSeparatorIfNecessary(java.lang.String path)
Adds to path the separator ('/' or '\') if it isn't present already

Parameters:
path - path
Returns:
updated path

getCanonicalPath

public static java.lang.String getCanonicalPath(java.lang.String path)
Returns the canonical pathname string of given pathname.

Parameters:
path - pathname string
Returns:
canonical pathname string