package _03;
import java.io.IOException;
public class _3_17Decode {
public static void main(String[] args) throws IOException {
// 1.IO流是以程序为中心,输入到程序,从程序输出
// 2.JAVA.IO包中主要是五个类、三个接口——File、InputStream、OutputStream、Reader、Writer、Closeable、Flushable、Serialable;
// 3.流分为节点流、处理流
// 4.流分为字节流、字符流(字符流的底层还是字节流,自动搜索了指定的码表)
// 文件编码: 字符集 变长的 UTF-8 GBK 定长的unicode - UTF-16
// 编码: String->byte
// String msg = "因为你 所以我";
// byte[] datas = msg.getBytes();
// System.out.println(datas.length);
// datas = msg.getBytes("GBK"); //每个都是两个字节
// System.out.println(datas.length);
// String msg1 = new String(datas,0,datas.length,"UTF-8");
// System.out.println(msg1);
}
}