public abstract class BaseBlenderConverter extends CommandLineBasedConverter
CommandLineBasedConverter.CmdReturn| Modifier and Type | Field and Description |
|---|---|
static String |
MIMETYPE_ZIP |
CMD_NAME_PARAMETER, initParameters, TMP_PATH_PARAMETER| Constructor and Description |
|---|
BaseBlenderConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
blobsToTempDir(BlobHolder blobHolder,
Path directory) |
protected BlobHolder |
buildResult(List<String> cmdOutput,
CmdParameters cmdParams)
Builds result from commandLine output buffer.
|
BlobHolder |
convert(BlobHolder blobHolder,
Map<String,Serializable> parameters)
Main method to handle the real Conversion Job.
|
List<String> |
getConversionLOD(String outDir) |
List<String> |
getInfos(String outDir) |
List<String> |
getRenders(String outDir) |
protected Path |
getScriptWith(List<String> operators)
Returns the absolute path to the main script (main and pipeline scripts).
|
protected boolean |
isThreeDFile(File file) |
protected Stream<String> |
sortFilesToPaths(List<File> files)
From a list of files, sort by file name and return a stream of file paths.
|
protected Path |
tempDirectory(Map<String,Serializable> parameters,
String sufix) |
execOnBlob, getCmdBlobParameters, getCmdStringParameters, getCommandLineService, getCommandName, getTmpDirectory, init, isConverterAvailablepublic static final String MIMETYPE_ZIP
public BaseBlenderConverter()
protected Path tempDirectory(Map<String,Serializable> parameters, String sufix) throws ConversionException
ConversionExceptionprotected boolean isThreeDFile(File file)
protected Stream<String> sortFilesToPaths(List<File> files)
protected List<String> blobsToTempDir(BlobHolder blobHolder, Path directory) throws IOException
IOExceptionprotected Path getScriptWith(List<String> operators) throws IOException
operators script to the filesystem if missing.IOExceptionpublic BlobHolder convert(BlobHolder blobHolder, Map<String,Serializable> parameters) throws ConversionException
Converter
Returned BlobHolder must implement CachableBlobHolder, otherwise result won't be cached.
convert in interface Converterconvert in class CommandLineBasedConverterConversionExceptionpublic List<String> getConversionLOD(String outDir)
public List<String> getRenders(String outDir)
protected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParams) throws ConversionException
CommandLineBasedConverterbuildResult in class CommandLineBasedConverterConversionExceptionCopyright © 2019 Nuxeo. All rights reserved.