摘要: ObjectOutputStream对象序列化流 作用:把对象以流的形式写入道文件中保存 构造方法:ObjectOutputStream(OutputStream out) 特有的方法: void writeObject(Object obj)将指定的对象写入道ObjectOutputStream中 阅读全文
posted @ 2022-10-08 22:12 彼时听风 阅读(93) 评论(0) 推荐(0)
摘要: OutPutStreamWrite是字符通向字节流的桥梁 构造方法: OutPutStreamWrite(OutPutStream out) OutPutStreamWrite(OutPutStream out, String chatsetName) 参数 OutPutStream out字节输出 阅读全文
posted @ 2022-10-08 19:42 彼时听风 阅读(257) 评论(0) 推荐(0)
摘要: java文件复制 public static void copy(String startPath,String endPath)throws IOException { long start = System.currentTimeMillis(); //创建读取流 FileInputStream 阅读全文
posted @ 2022-10-08 11:20 彼时听风 阅读(91) 评论(0) 推荐(1)