br.usp.ime.klava.segmentit.util
Class FileUtils

java.lang.Object
  extended by br.usp.ime.klava.segmentit.util.FileUtils

public class FileUtils
extends java.lang.Object

Provides file handling utility methods.

Author:
Bruno Klava

Constructor Summary
FileUtils()
           
 
Method Summary
static java.lang.String getSavedPath()
          Returns the last path saved.
static void savePath(java.io.File file)
          Saves, in a temporary File, the path of the given file (or its parent directory, if it is not a directory itself) for later reuse.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

savePath

public static void savePath(java.io.File file)
Saves, in a temporary File, the path of the given file (or its parent directory, if it is not a directory itself) for later reuse.

Parameters:
file - a File

getSavedPath

public static java.lang.String getSavedPath()
Returns the last path saved.

Returns:
the last path saved, or the current path if none was saved