获取系统属性:

System.out.println(System.getProperties());        
System.out.println(System.getProperty("user.dir"));//当前工作目录

为何会有字符流?

因为unicode字符不止一个字节,使用字节流读取不全

组合流过滤器

// 批量读取文件里的数字
DataInputStream din = new DataInputStream(
    new BufferedInputStream(
    new FileInputStream("test.dat")));
//读取zip文件里的数字
            ZipInputStream zin = new ZipInputStream(new FileInputStream("xxx.zip"));
            DataInputStream din2 = new DataInputStream(zin);

results matching ""

    No results matching ""