1.获取文本的编码方式:
2.获取缓存中的数据。
String encoding = System.getProperty("file.encoding");
2.获取缓存中的数据。
//encoding 为编码方式
Charset.forName(encoding).decode(buff)