com.ca.commons.cbutil
Class CBLauncher

java.lang.Object
  |
  +--com.ca.commons.cbutil.CBLauncher

public class CBLauncher
extends java.lang.Object

This class attempts to launch a program (depending on its file extension) and attempts to open the specified file. For example: launch MS word (winword.exe) with file 'a.doc'.


Constructor Summary
CBLauncher()
           
 
Method Summary
static void launchProgram(java.lang.String extension, java.lang.String fileName)
          This class attempts to launch a program (depending on its file extension) and attempts to open the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CBLauncher

public CBLauncher()
Method Detail

launchProgram

public static void launchProgram(java.lang.String extension,
                                 java.lang.String fileName)
This class attempts to launch a program (depending on its file extension) and attempts to open the specified file. For example: launch MS word (winword.exe) with file 'a.doc'.

Parameters:
extension - the file extension that determines what program to use (e.g. '.mp3').
fileName - the name of the file that needs to be opened (e.g. 'a.mp3').