![5601248.aspx](https://i-blog.csdnimg.cn/blog_migrate/4b040fe2fe55b01fcad0799db05f3f1c.png)
package readFileHead;import java.io.File;import java.io.FileInputStream;import javax.swing.filechooser.FileSystemView;import sun.io.CharToByteUTF8;public class Read { /** * 判断文件是否为图片文件(GIF,PNG,JPG) * * @param srcFileName * @return */ public static void isImage(String srcFileName) { FileInputStream imgFile = null; byte[] b = new byte[10]; int l = -1; try { imgFile = new FileInp
![5601248.aspx](https://i-blog.csdnimg.cn/blog_migrate/4b040fe2fe55b01fcad0799db05f3f1c.png)
转载于:https://my.oschina.net/dapeng/blog/5640