process

abstract fun process(input: File, fromType: FileFormat<T>? = null, toType: FileFormat<T>, renamerContext: TemplateContext = emptyMap())

Processes input with an optional input file type fromType. If fromType is null, then the implementor should call detectFileType to grab that format.

A simple way and builtin way to do this for the previous quirk, is the following:

val from = fromType ?: detectFileType(input)

Inserting this piece of code at the beginning of process's implementation will assure that fromType is resolved properly! :)

This processor will try to convert the appropriate format to toType and rename using the functionality defined using renamerContext.