是多媒体文件
/** 来自 时 代 Java 公 众 号 - nowjava.com**/ //package com.nowjava; public class Main { public static boolean isMultimediaFile(String filename) { if (!(filename.length() > 3)) { return false; } int i = filename.length(); String ending = filename.substring(i - 3, i); if (ending.equalsIgnoreCase(".--")) { return true; } ending = filename.substring(i - 4, i); /** from N o w J a v a . c o m**/ if (ending.equalsIgnoreCase(".avi")) { return true; } if (ending.equalsIgnoreCase(".mpg")) { return true; } int index = i - 5; if (index >= 0) { ending = filename.substring(index, i);