public class Builder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_OFFICE_HOME_VALUE |
static String |
OFFICE_HOME_KEY |
static String |
SERVICE_DESKTOP |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
cast(Class<T> type,
Object object) |
static String |
getCustomizedConfigPath() |
static File |
getDefaultOfficeHome() |
static String |
getHomePath() |
static File |
getOfficeExecutable(File officeHome) |
static boolean |
isLinux() |
static boolean |
isMac() |
static boolean |
isWindows() |
static com.sun.star.beans.PropertyValue |
property(String name,
Object value) |
static void |
restorePropertiesFromEnvFormat(Properties properties)
SpringBoot application.properties 支持从环境变量获取值
|
static com.sun.star.beans.PropertyValue[] |
toUnoProperties(Map<String,?> properties) |
static String |
toUrl(File file) |
public static final String SERVICE_DESKTOP
public static final String OFFICE_HOME_KEY
public static final String DEFAULT_OFFICE_HOME_VALUE
public static com.sun.star.beans.PropertyValue[] toUnoProperties(Map<String,?> properties)
public static File getDefaultOfficeHome()
public static String getHomePath()
public static String getCustomizedConfigPath()
public static void restorePropertiesFromEnvFormat(Properties properties)
properties - 配置文件public static boolean isLinux()
public static boolean isMac()
public static boolean isWindows()
Copyright © 2019. All rights reserved.