question: public static String guessFormat ( String name ) { String ext = FileUtil . getFilenameExtension ( name ) ; for ( String format : FORMATS ) { if ( format . equals ( ext ) ) { return ext ; } } return null ; }
target:  Guess a supported format from the file name. For "auto" format handling.