org.ow2.jonas.launcher.felix.util
Class IOUtils

java.lang.Object
  extended by org.ow2.jonas.launcher.felix.util.IOUtils

public final class IOUtils
extends java.lang.Object

IO utilities.

Author:
Guillaume Sauthier

Method Summary
static boolean deleteDir(java.io.File dir)
          Recursively delete a directory.
static java.io.File getSystemFile(java.io.File base, java.lang.String relative)
          Return a OS valid File.
static java.lang.String getSystemPath(java.io.File base, java.lang.String relative)
          Return a OS valid path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deleteDir

public static boolean deleteDir(java.io.File dir)
Recursively delete a directory.

Parameters:
dir - directory to be deleted
Returns:
true if everything went smoothly.

getSystemPath

public static java.lang.String getSystemPath(java.io.File base,
                                             java.lang.String relative)
Return a OS valid path.

Parameters:
base - basis directory
relative - relative path name to the basis directory
Returns:
the OS dependent path name

getSystemFile

public static java.io.File getSystemFile(java.io.File base,
                                         java.lang.String relative)
Return a OS valid File.

Parameters:
base - basis directory
relative - relative path name to the basis directory
Returns:
the OS dependent File


Copyright © 2010 OW2 Consortium. All Rights Reserved.