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 thesofficecommand line.It fills the
-env:userInstallationargument with a temporary folder to correctly isolate thesofficeprocesses 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 StringUSER_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 BlobHolderbuildResult(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:CommandLineBasedConverterExtracts String parameters.- Overrides:
getCmdStringParametersin classCommandLineConverter
-
buildResult
protected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParams)
Description copied from class:CommandLineBasedConverterBuilds result from commandLine output buffer.- Overrides:
buildResultin classCommandLineConverter
-
-