jxl.install
Class Installer

java.lang.Object
  extended by jxl.install.Installer

public final class Installer
extends java.lang.Object

Installer provides consistent access to the native file system by saving the location of the root installation dir with the java.util.Preferences systems. All Files returned from getDirForPackage extend from the dir saved in the prferences.

Author:
alex

Method Summary
static java.io.File getDirForName(javax.naming.Name name)
           
static java.io.File getDirForName(java.lang.String name)
           
static java.io.File getDirForPackage(java.lang.Class c)
          Returns a new File representing the directory where peresistent data for Class c's package should be kept.
static void main(java.lang.String[] args)
          Show or set the java persistence directory from the command line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
Show or set the java persistence directory from the command line


getDirForPackage

public static java.io.File getDirForPackage(java.lang.Class c)
Returns a new File representing the directory where peresistent data for Class c's package should be kept.

Parameters:
c - Class to get package from
Returns:
The persistence directory for data from Class c

getDirForName

public static java.io.File getDirForName(java.lang.String name)

getDirForName

public static java.io.File getDirForName(javax.naming.Name name)