摘要:
查看源代码: 1 /** 2 * 判断文件是否为图片文件(GIF,PNG,JPG) 3 * @param srcFileName 4 * @return 5 */ 6 public static boolean isImage(File srcFilePath) { 7 FileInputStream imgFile = null; 8 byte[] b = new byte[10]; 9 int l = -1;10 try {11 imgFile = ne... 阅读全文