net.rmi.rjs.fc.ssinstaller
Class SSInstallerUtil

java.lang.Object
  extended by net.rmi.rjs.fc.ssinstaller.SSInstallerUtil

public class SSInstallerUtil
extends java.lang.Object


Constructor Summary
SSInstallerUtil()
           
 
Method Summary
static boolean checkProperties()
           
static void createDir(java.lang.String path)
           
static void downloadScreenSaverJar(java.io.File outputJarFile, java.lang.String urlStr)
           
static java.lang.String fileExists(java.io.File f)
           
static java.lang.String getJarName()
           
static java.lang.String getJavaHome()
           
static java.lang.String getSSHome()
           
static java.lang.String getSSName()
           
static java.lang.String getSSUnixUrl()
           
static java.lang.String getSSWinUrl()
           
static java.lang.String getUserDir()
           
static java.lang.String getUserHome()
           
static java.lang.String readPropertiesfile()
          Method: readPropertiesfile() Description: Use this method to read properties from a properties file.
static java.lang.String setProperties()
          Method: setProperties() Description: Use to set hard coded properties.
static void uncompressScreenSaverJar(java.io.File jarFile)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSInstallerUtil

public SSInstallerUtil()
Method Detail

downloadScreenSaverJar

public static void downloadScreenSaverJar(java.io.File outputJarFile,
                                          java.lang.String urlStr)
                                   throws java.io.IOException
Throws:
java.io.IOException

uncompressScreenSaverJar

public static void uncompressScreenSaverJar(java.io.File jarFile)

fileExists

public static java.lang.String fileExists(java.io.File f)

setProperties

public static java.lang.String setProperties()
Method: setProperties() Description: Use to set hard coded properties. Optionally the method readPropertiesfile() can be use to set properties from a properties file.


readPropertiesfile

public static java.lang.String readPropertiesfile()
Method: readPropertiesfile() Description: Use this method to read properties from a properties file. The name of the file is stored in the static variable INSTALL_PROPERTIES_FILE_NAME. It reads in this format: = This file would be a resource file so it must be located with the .class files. In this class we have additionaly created the method setProperties(), where the properties values are hard coded.


checkProperties

public static boolean checkProperties()

getSSName

public static java.lang.String getSSName()

getSSHome

public static java.lang.String getSSHome()

getSSWinUrl

public static java.lang.String getSSWinUrl()

getSSUnixUrl

public static java.lang.String getSSUnixUrl()

createDir

public static void createDir(java.lang.String path)

getJarName

public static java.lang.String getJarName()

getUserHome

public static java.lang.String getUserHome()

getUserDir

public static java.lang.String getUserDir()

getJavaHome

public static java.lang.String getJavaHome()