Package com.logicaldoc.core.conversion
Interface FormatConverter
- All Known Implementing Classes:
- AbstractFormatConverter,- CompressedArchiveConverter,- GhostscriptConverter,- ImageConverter,- MarkdownConverter,- NoConversionConverter,- NotAvailableConverter,- P7MConverter,- PstConverter,- RarConverter,- SevenZipConverter,- TarConverter,- XMLConverter,- ZipConverter
public interface FormatConverter
Implementations of this interface are specialized classes that perform
 conversion from a source format to a target format.
- Since:
- 7.1.3
- Author:
- Marco Meschieri - LogicalDOC
- 
Method SummaryModifier and TypeMethodDescriptionvoidPerforms the conversionvoidPerforms the conversiongetParameter(String name) Gets the value of a parameterImplementations should return the list of the required parameters.Returns the map of parametersbooleanChecks if the converter is enabled or notvoidReads it's own parameters and stores them in the parameters mapvoidsetEnabled(boolean enabled) Enables or disables the converter
- 
Method Details- 
convertPerforms the conversion- Parameters:
- src- The source file
- dest- The converted file, the extension of it's filename defines the output format
- Throws:
- IOException- raised if the conversion resulted in an error
 
- 
convertPerforms the conversion- Parameters:
- sid- The actual Session ID (optional)
- document- The document (optional)
- src- The source file
- dest- The converted file, the extension of it's filename defines the output format
- Throws:
- IOException- raised if the conversion resulted in an error
 
- 
getParameterNamesImplementations should return the list of the required parameters. A parameter is stored in the context as converter.SimpleClassName.parameter = value- Returns:
- list of the configuration parameters
 
- 
getParametersReturns the map of parameters- Returns:
- map param_name = param_value
 
- 
getParameterGets the value of a parameter- Parameters:
- name- name of the configuration parameter
- Returns:
- the value of the configuration parameter
 
- 
loadParametersvoid loadParameters()Reads it's own parameters and stores them in the parameters map
- 
isEnabledboolean isEnabled()Checks if the converter is enabled or not- Returns:
- if the converter is enabled
 
- 
setEnabledvoid setEnabled(boolean enabled) Enables or disables the converter- Parameters:
- enabled- the enabled flag
 
 
-