@Component public class OfficeUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private ApplicationData |
applicationData |
private static String |
bacapp_name |
private static boolean |
flag |
private static boolean |
flags |
private static String |
jar_name |
private static org.slf4j.Logger |
logger |
static String |
SERVICE_DESKTOP |
| 构造器和说明 |
|---|
OfficeUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
cast(Class<T> type,
Object object) |
private static void |
createTmp(Enumeration<JarEntry> entries,
String tmp_path,
String jarPath) |
private static void |
duplicateRemoval(String file) |
private static File |
findOfficeHome(String... knownPaths) |
File |
getDefaultOfficeHome() |
static File |
getOfficeExecutable(File officeHome) |
private static void |
mergeFiles(String outFile,
String[] files) |
static com.sun.star.beans.PropertyValue |
property(String name,
Object value) |
static com.sun.star.beans.PropertyValue[] |
toUnoProperties(Map<String,?> properties) |
static String |
toUrl(File file) |
private static boolean flag
private static boolean flags
private static final org.slf4j.Logger logger
@Autowired private ApplicationData applicationData
public static com.sun.star.beans.PropertyValue[] toUnoProperties(Map<String,?> properties)
public File getDefaultOfficeHome()
private static void createTmp(Enumeration<JarEntry> entries, String tmp_path, String jarPath) throws IOException
IOExceptionprivate static void duplicateRemoval(String file) throws IOException
IOExceptionCopyright © 2019. All rights reserved.