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
public class LibreOfficeConverter extends CommandLineConverter
LibreOffice converter to be used when using thesoffice
command line.It fills the
-env:userInstallation
argument with a temporary folder to correctly isolate thesoffice
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 Modifier and Type Field Description static String
USER_INSTALLATION_PATH_KEY
-
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
Constructors Constructor Description LibreOfficeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BlobHolder
buildResult(List<String> cmdOutput, CmdParameters cmdParams)
Builds result from commandLine output buffer.protected Map<String,String>
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, getCommandLineService, getCommandName, getTmpDirectory, init, isConverterAvailable
-
-
-
-
Field Detail
-
USER_INSTALLATION_PATH_KEY
public static final String USER_INSTALLATION_PATH_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
protected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParams)
Description copied from class:CommandLineBasedConverter
Builds result from commandLine output buffer.- Overrides:
buildResult
in classCommandLineConverter
-
-