jfun.util
Class WorkingDirectory

java.lang.Object
  extended by jfun.util.WorkingDirectory

public class WorkingDirectory
extends java.lang.Object

This class enables dynamic change of the "current directory".

The directory currency only affects the current thread. Child thread will inherit the currency.

Zephyr Business Solution

Author:
Ben Yu

Method Summary
static java.io.File file(java.lang.String s)
          To create a File object using the current directory.
static java.io.File getBase()
          To get the current base directory.
static void setBase(java.io.File b)
          To change the current base directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

file

public static java.io.File file(java.lang.String s)
To create a File object using the current directory.

Parameters:
s - the file string.
Returns:
the File object.

getBase

public static java.io.File getBase()
To get the current base directory.


setBase

public static void setBase(java.io.File b)
To change the current base directory.

Parameters:
b - the new base directory.