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 Path |
tempDirectory(Map<String,Serializable> parameters,
String sufix) |
execOnBlob, getCmdBlobParameters, getCmdStringParameters, getCommandLineService, getCommandName, getTmpDirectory, init, isConverterAvailable
public static final String MIMETYPE_ZIP
public BaseBlenderConverter()
protected Path tempDirectory(Map<String,Serializable> parameters, String sufix) throws ConversionException
ConversionException
protected boolean isThreeDFile(File file)
protected List<String> blobsToTempDir(BlobHolder blobHolder, Path directory) throws IOException
IOException
protected Path getScriptWith(List<String> operators) throws IOException
operators
script to the filesystem if missing.IOException
public 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 Converter
convert
in class CommandLineBasedConverter
ConversionException
public List<String> getConversionLOD(String outDir)
public List<String> getRenders(String outDir)
protected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParams) throws ConversionException
CommandLineBasedConverter
buildResult
in class CommandLineBasedConverter
ConversionException
Copyright © 2018 Nuxeo. All rights reserved.