ppt4j 1.0
 
All Classes Namespaces Files Functions Variables Pages
Loading...
Searching...
No Matches
ppt4j.util.ExecDriver Interface Reference

Public Member Functions

String getCmdline ()
 
void dispatch (final String cmd)
 
int join ()
 
int execute (final String cmd)
 
int exitValue ()
 
void reset ()
 

Static Public Member Functions

static ExecDriver getInstance ()
 

Member Function Documentation

◆ dispatch()

void ppt4j.util.ExecDriver.dispatch ( final String cmd)

Dispatches the given command to the appropriate handler.

Parameters
cmdthe command to be dispatched

◆ execute()

int ppt4j.util.ExecDriver.execute ( final String cmd)

Executes the given command and returns the exit code.

Parameters
cmdthe command to be executed
Returns
the exit code of the command

◆ exitValue()

int ppt4j.util.ExecDriver.exitValue ( )

Returns the exit value of the subprocess. The exit value is typically a numeric value representing the result of the subprocess execution. A non-zero exit value usually indicates an error occurred during the process execution.

Returns
the exit value of the subprocess

◆ getCmdline()

String ppt4j.util.ExecDriver.getCmdline ( )

This method returns the command line arguments passed to the program.

Returns
a String representing the command line arguments

◆ getInstance()

static ExecDriver ppt4j.util.ExecDriver.getInstance ( )
static

Returns an instance of ExecDriver based on the current operating system. If the operating system is Linux, macOS, or Unix-like, it returns an instance of UnixExecDriver. Otherwise, it throws an UnsupportedOperationException with the message "Unsupported OS: [OS name]".

Returns
an instance of ExecDriver based on the current operating system

◆ join()

int ppt4j.util.ExecDriver.join ( )

Combines the elements of a collection into a single integer value.

Returns
the result of joining the elements of the collection

◆ reset()

void ppt4j.util.ExecDriver.reset ( )

Resets the state of the object to its initial state.


The documentation for this interface was generated from the following file: