public final class OfficeDescriptor extends Object
| Modifier and Type | Method and Description |
|---|---|
static OfficeDescriptor |
fromExecutablePath(String path)
Creates descriptor from the office installation path.
|
static OfficeDescriptor |
fromHelpOutput(List<String> lines)
Creates descriptor from the command line output using the help option.
|
String |
getProduct()
Gets the product name of the office installation being used.
|
String |
getVersion()
Gets the version of the office installation being used.
|
String |
toString() |
boolean |
useLongOptionNameGnuStyle()
Gets whether we must use the lone option name GNU style (--) when setting command line options
to start an office instance.
|
public static OfficeDescriptor fromHelpOutput(List<String> lines)
lines - The output lines of the execution.public static OfficeDescriptor fromExecutablePath(String path)
path - The installaiton path.public String getProduct()
public String getVersion()
public boolean useLongOptionNameGnuStyle()
true to use the lone option name GNU style,false otherwise.