com.partnersoft.update
Class UpdateLib

java.lang.Object
  extended by com.partnersoft.update.UpdateLib
All Implemented Interfaces:
UpdateConstants

public class UpdateLib
extends java.lang.Object
implements UpdateConstants

Useful methods for dealing with the update system.

Author:
Paul Reavis Copyright 2005 Partner Software, Inc.

Field Summary
 
Fields inherited from interface com.partnersoft.update.UpdateConstants
CENTRAL_HUB, CONFIG_LEVELS, CONFIG_MANAGER, DISTRIBUTION, INSTALL_TYPES, MAP_TRANSLATOR, OS, OS_DIRS, PALM_USER, PROVIDER, SHORT_INSTALL_TYPES, SITE_HUB, USER, WEB_USER
 
Constructor Summary
UpdateLib()
           
 
Method Summary
static java.lang.String boxcarPathFor(java.lang.String packageName)
           
static java.lang.String checksumPathFor(java.lang.String packageName)
           
static java.util.ArrayList contentsForPackage(java.lang.String packageName)
           
static Naming getPackageContents()
           
static java.util.ArrayList listPackagesChanged()
           
static java.util.ArrayList listPackagesChanged(java.net.URL source, VFS destination)
           
static java.util.ArrayList listPackagesChanged(VFS source, VFS destination)
           
static void makeAbsolutelySureItAintA3xInstall(java.io.File installDir)
           
static java.util.ArrayList packagesProvidedBy(java.lang.String sourceType)
           
static java.lang.String readInstallType(VFS source)
           
static java.lang.String readSourceInstallType()
           
static void restart()
          Updates the system, then restarts the Map Viewer.
static java.util.ArrayList whichPackages(java.lang.String sourceType, java.lang.String destinationType, java.lang.String osType, boolean embedJava)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateLib

public UpdateLib()
Method Detail

contentsForPackage

public static java.util.ArrayList contentsForPackage(java.lang.String packageName)

boxcarPathFor

public static java.lang.String boxcarPathFor(java.lang.String packageName)

checksumPathFor

public static java.lang.String checksumPathFor(java.lang.String packageName)

makeAbsolutelySureItAintA3xInstall

public static void makeAbsolutelySureItAintA3xInstall(java.io.File installDir)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

getPackageContents

public static Naming getPackageContents()

whichPackages

public static java.util.ArrayList whichPackages(java.lang.String sourceType,
                                                java.lang.String destinationType,
                                                java.lang.String osType,
                                                boolean embedJava)

packagesProvidedBy

public static java.util.ArrayList packagesProvidedBy(java.lang.String sourceType)

readSourceInstallType

public static java.lang.String readSourceInstallType()
                                              throws java.io.IOException
Throws:
java.io.IOException

readInstallType

public static java.lang.String readInstallType(VFS source)
                                        throws java.io.IOException
Throws:
java.io.IOException

listPackagesChanged

public static java.util.ArrayList listPackagesChanged()
                                               throws java.io.IOException
Throws:
java.io.IOException

listPackagesChanged

public static java.util.ArrayList listPackagesChanged(VFS source,
                                                      VFS destination)
                                               throws java.io.IOException
Throws:
java.io.IOException

listPackagesChanged

public static java.util.ArrayList listPackagesChanged(java.net.URL source,
                                                      VFS destination)
                                               throws java.io.IOException
Throws:
java.io.IOException

restart

public static void restart()
                    throws java.io.IOException
Updates the system, then restarts the Map Viewer.

Throws:
java.io.IOException