Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.convert.plugins
Class CommandLineBasedConverter

java.lang.Object
  extended by org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
All Implemented Interfaces:
Converter, ExternalConverter
Direct Known Subclasses:
PDF2HtmlConverter, PDF2ImageConverter, WordPerfect2TextConverter

public abstract class CommandLineBasedConverter
extends Object
implements ExternalConverter

Base class to implement Converter based on CommandLineExecutorService.

Author:
tiry

Constructor Summary
CommandLineBasedConverter()
           
 
Method Summary
 BlobHolder convert(BlobHolder blobHolder, Map<String,Serializable> parameters)
          Main method to handle the real Conversion Job.
 String getTmpDirectory(Map<String,Serializable> parameters)
           
 void init(ConverterDescriptor descriptor)
          Initializes the Converter.
 ConverterCheckResult isConverterAvailable()
          Checks if the converter is available.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineBasedConverter

public CommandLineBasedConverter()
Method Detail

getTmpDirectory

public String getTmpDirectory(Map<String,Serializable> parameters)

convert

public BlobHolder convert(BlobHolder blobHolder,
                          Map<String,Serializable> parameters)
                   throws ConversionException
Description copied from interface: Converter
Main method to handle the real Conversion Job.

Returned BlobHolder must implement CachableBlobHolder, otherwise result won't be cached.

Specified by:
convert in interface Converter
Throws:
ConversionException

init

public void init(ConverterDescriptor descriptor)
Description copied from interface: Converter
Initializes the Converter.

This can be used to retrieve some configuration information from the XMap Descriptor.

Specified by:
init in interface Converter

isConverterAvailable

public ConverterCheckResult isConverterAvailable()
Description copied from interface: ExternalConverter
Checks if the converter is available.

Specified by:
isConverterAvailable in interface ExternalConverter

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.