Package ch.tocco.nice2.conversion.api
Interface ConverterEngine<T extends ConverterConfig>
- All Known Implementing Classes:
Plain2HtmlConverter
,WkHtmlToPdfConverter
public interface ConverterEngine<T extends ConverterConfig>
Interface for an engine to convert a specific
InputStream
format to a specific OutputStream
format-
Method Summary
Modifier and TypeMethodDescriptionvoid
Convert the InputStream to the desired format and write to the provided OutputStream.getName()
Returns the name of the converter enginegetNewConverterConfig
(InputStream source, OutputStream target) get a new converter config object for this engine
-
Method Details
-
getName
String getName()Returns the name of the converter engine -
convert
Convert the InputStream to the desired format and write to the provided OutputStream.- Parameters:
converterConfig
- config object obtained fromgetNewConverterConfig(InputStream, OutputStream)
- Throws:
ConversionException
- -
-
getNewConverterConfig
get a new converter config object for this engine- Parameters:
source
- the source to be convertedtarget
- the target to write to- Returns:
- a converter config object
-