visidia.misc
Class FileHandler

java.lang.Object
  extended by visidia.misc.FileHandler

public class FileHandler
extends java.lang.Object

This class manages a unique file handler.


Method Summary
static FileHandler getInstance()
          Gets the single instance of FileHandler.
static java.lang.String getRootDirectory(java.lang.String pathToReach)
          Gets the root directory.
 java.io.File searchFile(java.lang.String name)
          Searches a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FileHandler getInstance()
Gets the single instance of FileHandler.

Returns:
single instance of FileHandler

searchFile

public java.io.File searchFile(java.lang.String name)
Searches a file.

Parameters:
name - the name
Returns:
the file, or null if not found

getRootDirectory

public static java.lang.String getRootDirectory(java.lang.String pathToReach)
Gets the root directory.

Parameters:
pathToReach - the path to reach
Returns:
the root directory