Class LibreOfficeConverter
java.lang.Object
org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
org.nuxeo.ecm.platform.convert.plugins.CommandLineConverter
org.nuxeo.ecm.platform.convert.plugins.LibreOfficeConverter
- All Implemented Interfaces:
Converter
,ExternalConverter
LibreOffice converter to be used when using the
soffice
command line.
It fills the -env:userInstallation
argument with a temporary folder to correctly isolate the soffice
processes so multiple instances can be run simultaneously.
- Since:
- 10.10
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
CommandLineBasedConverter.CmdReturn
-
Field Summary
Fields inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineConverter
OUT_DIR_PATH_KEY, RESERVED_PARAMETERS, SOURCE_FILE_PATH_KEY, TARGET_FILE_NAME_KEY, TARGET_FILE_PATH_KEY
Fields inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
CMD_NAME_PARAMETER, initParameters, TMP_PATH_PARAMETER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BlobHolder
buildResult
(List<String> cmdOutput, CmdParameters cmdParams) Builds result from commandLine output buffer.getCmdStringParameters
(BlobHolder blobHolder, Map<String, Serializable> parameters) Extracts String parameters.Methods inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineConverter
getCmdBlobParameters
Methods inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
convert, execOnBlob, getCommandName, getTmpDirectory, init, isConverterAvailable
-
Field Details
-
USER_INSTALLATION_PATH_KEY
- See Also:
-
-
Constructor Details
-
LibreOfficeConverter
public LibreOfficeConverter()
-
-
Method Details
-
getCmdStringParameters
protected Map<String,String> getCmdStringParameters(BlobHolder blobHolder, Map<String, Serializable> parameters) Description copied from class:CommandLineBasedConverter
Extracts String parameters.- Overrides:
getCmdStringParameters
in classCommandLineConverter
-
buildResult
Description copied from class:CommandLineBasedConverter
Builds result from commandLine output buffer.- Overrides:
buildResult
in classCommandLineConverter
-