摘要:
public static String getCharset(File file) { String charset = "GBK"; byte[] first3Bytes = new byte[3]; try { boolean checked = false; BufferedInputStream bis = new BufferedInputStream( new FileInputStream(file)); bis.mark(0); int read = bis.read(first3Bytes, 0, 3); if (read == -1) return c 阅读全文
posted @ 2011-08-01 14:02
自由港
阅读(429)
评论(0)
推荐(0)
浙公网安备 33010602011771号