org.qtunes.core.util
Class FileUtils

java.lang.Object
  extended by org.qtunes.core.util.FileUtils

public class FileUtils
extends java.lang.Object


Method Summary
static boolean equals(java.io.File file1, java.io.File file2)
           
static java.io.File getAbsoluteFile(java.io.File file)
          Get the absolute path of the specified File relative to the current root
static java.io.File getRelativeFile(java.io.File file)
          Given a root and a file, return a new File representing the canonical relative path from root to file
static java.io.File getRoot()
          Get the File root for this thread and its children
static void setRoot(java.io.File file)
          Set the File root for this thread and its children
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setRoot

public static void setRoot(java.io.File file)
                    throws java.io.IOException
Set the File root for this thread and its children

Throws:
java.io.IOException

getRoot

public static java.io.File getRoot()
Get the File root for this thread and its children


getAbsoluteFile

public static java.io.File getAbsoluteFile(java.io.File file)
                                    throws java.io.IOException
Get the absolute path of the specified File relative to the current root

Throws:
java.io.IOException

getRelativeFile

public static java.io.File getRelativeFile(java.io.File file)
                                    throws java.io.IOException
Given a root and a file, return a new File representing the canonical relative path from root to file

Throws:
java.io.IOException

equals

public static boolean equals(java.io.File file1,
                             java.io.File file2)
                      throws java.io.IOException
Throws:
java.io.IOException