public final class OfficeDescriptor extends Object
| Modifier and Type | Method and Description |
|---|---|
static @NonNull OfficeDescriptor |
fromExecutablePath(@NonNull String path)
Creates descriptor from the office installation path.
|
static @NonNull OfficeDescriptor |
fromHelpOutput(@NonNull List<String> lines)
Creates descriptor from the command line output using the help option.
|
@NonNull String |
getProduct()
Gets the product name of the office installation being used.
|
@NonNull String |
getVersion()
Gets the version of the office installation being used.
|
@NonNull 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 @NonNull OfficeDescriptor fromHelpOutput(@NonNull List<String> lines)
lines - The output lines of the execution.public static @NonNull OfficeDescriptor fromExecutablePath(@NonNull String path)
path - The installation path.public @NonNull String getProduct()
public @NonNull String getVersion()
public boolean useLongOptionNameGnuStyle()
true to use the lone option name GNU style,false otherwise.Copyright © 2016 - present; JODConverter.org. All rights reserved.