net.simplace.core.service.FileExecuteHelper

This Class runs a extern Application with a certain document/file from wich the Filename is given.


public class FileExecuteHelper {
// Public Constructors
public FileExecuteHelper();


// Class Methods
public static void showInExternalBrowser(String aURL, boolean aNewWindows)
throws BrowserLaunchingInitializingException,
UnsupportedOperatingSystemException;

public static Process executeFile(File aFile) throws ExecutionException;

Opens the file in the registered application
returns opened file Process
public static Process executeFile(String aFileName);

executes a file returning the Process-Object for excepion-case null is returned
returns opened file Process or null for excepion-case
public static Process executeFileExtern(File aFile)
throws ExecutionException;

Opens the file in the registered system-application. CAVEAT: Changes to this method must be tested against all supportet Windows-Versions.
returns opened file Process
public static Process executeFileExtern(String aFile)
throws ExecutionException;

Opens the file in the registered system-application. CAVEAT: Changes to this method must be tested against all supportet Windows-Versions.
returns opened file Process
public static Process executeFileExtern(File aFile, boolean
aCreateTemporaryCopy) throws ExecutionException;

Opens the file in the registered system-application.
returns opened file Process
public static Process executeExecutable(String aWholePathAndProgName);

Calls the executable.
returns executing file Process
public static String executeApplication(String aAppName, File aWorkingDir)
throws IOException;

Invokes an executable. Returns stdout as String.
returns stdout as String
public static void executeScript(String aPath, String aExecutableName,
String aParameterString) throws ExecutionException;

public static void newMailInStandardClient(List aToAddrsList, String
aSubject, String aBody, String aAttachementPath) throws IOException;

Opens the standard E-Mail-Client.


}