question: public static int inferContentType ( String fileName ) { if ( fileName == null ) { return TYPE_OTHER ; } else if ( fileName . endsWith ( ".mpd" ) ) { return TYPE_DASH ; } else if ( fileName . endsWith ( ".ism" ) ) { return TYPE_SS ; } else if ( fileName . endsWith ( ".m3u8" ) ) { return TYPE_HLS ; } else { return TYPE_OTHER ; } }
target:  Makes a best guess to infer the type from a file name.