public class OfficeUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_OFFICE_HOME_VALUE |
static String |
OFFICE_HOME_KEY |
static String |
SERVICE_DESKTOP |
| 限定符 | 构造器和说明 |
|---|---|
private |
OfficeUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
cast(Class<T> type,
Object object) |
private static File |
findOfficeHome(String... knownPaths) |
static String |
getCustomizedConfigPath() |
static File |
getDefaultOfficeHome() |
static String |
getHomePath() |
static File |
getOfficeExecutable(File officeHome) |
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 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 - Copyright © 2020. All rights reserved.