Optimizing code block using Switch Case
To avoid the messy switch block, you should probably create an interface or abstract class called FileConversionHandler:

public abstract class FileConversionHandler {
    public abstract void process(File f);
}


Then, for each type of file, make a subclass that implements process() differently.