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.
- aFile
- aCreateTemporaryCopy -
If true, a copy of the file to be executed will be created and
the copy will be executed. This can be done to prevent certain
documents from being edited, i. e. offer documents. CAVEAT:
Changes to this method must be tested against all supportet
Windows-Versions.
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;
- aPath
- aExecutableName
- aParameterString
public static void
newMailInStandardClient(List aToAddrsList, String
aSubject, String aBody, String aAttachementPath) throws IOException;
Opens the standard E-Mail-Client.
- aToAddrsList List of Strings with valid E-Mail-adresses.
- aSubject
- aBody
- aAttachementPath
}