public static File replaceExtension ( File file , String newExtension ) throws IllegalArgumentException { Params . notNull ( file , "File" ) ; return new File ( replaceExtension ( file . getPath ( ) , newExtension ) ) ; }
Replace extension on given file and return resulting file .