米字键

博客园 首页 新随笔 联系 订阅 管理

2019年3月26日 #

摘要: package text;import java.io.BufferedReader;import java.io.FileReader;import java.io.IOException; public class Buff5 { public static void main(String[] 阅读全文
posted @ 2019-03-26 18:40 米字键 阅读(191) 评论(0) 推荐(0) 编辑

摘要: package text;import java.io.BufferedOutputStream;import java.io.FileOutputStream;import java.io.IOException;public class Buff2 { public static void ma 阅读全文
posted @ 2019-03-26 18:22 米字键 阅读(249) 评论(0) 推荐(0) 编辑

摘要: import java.io.BufferedOutputStream;import java.io.FileOutputStream;import java.io.IOException; public class Buff2 { public static void main(String[] 阅读全文
posted @ 2019-03-26 17:00 米字键 阅读(135) 评论(0) 推荐(0) 编辑

摘要: import java.io.*; // 字节传输的缓冲流 public class Buff1 { public static void main(String[] args) { BufferedInputStream bos=null; try { // 读取D盘的内容 bos=new Buf 阅读全文
posted @ 2019-03-26 16:44 米字键 阅读(410) 评论(0) 推荐(0) 编辑

摘要: import java.io.*;/* * 字节传输的缓冲流 * * 用字节传输的缓冲流进行文件的复制 * * 实现复制文件 * * */ public class BuffF { public static void main(String[] args) { // 定义路径为空 FileInpu 阅读全文
posted @ 2019-03-26 16:23 米字键 阅读(470) 评论(0) 推荐(0) 编辑

2019年3月25日 #

摘要: import java.io.*; public class Outchant { // 字节转化成字符类型 public static void main(String[] args) { // 异常处理 try { fun(); fun1(); } catch (Exception e) { e 阅读全文
posted @ 2019-03-25 20:46 米字键 阅读(2474) 评论(0) 推荐(0) 编辑

摘要: // 字节流文件的创建 复制 import java.io.*; import javax.imageio.stream.FileImageInputStream; public class FileL { public static void main(String[] args) { // 异常 阅读全文
posted @ 2019-03-25 20:10 米字键 阅读(460) 评论(0) 推荐(0) 编辑

摘要: import java.io.*; /** * 使用字符流创建文件复制文件 * 在盘符中文件夹 * 在文件夹中添加文件 * 在文件中写文字 * 复制文件 * */ public class Iof { public static void main(String[] args) { try { fu 阅读全文
posted @ 2019-03-25 18:53 米字键 阅读(260) 评论(0) 推荐(0) 编辑

2019年3月23日 #

摘要: import java.io.File; import java.io.FileFilter; //创建一个功夫类继承文件管理类 public class FileFu implements FileFilter{ // 添加路径名 返回值类型为布尔型 public boolean accept(F 阅读全文
posted @ 2019-03-23 20:12 米字键 阅读(706) 评论(0) 推荐(0) 编辑

摘要: import java.io.File; import java.io.IOException; public class FileD { public static void main(String[] args) throws IOException { fun(); System.out.pr 阅读全文
posted @ 2019-03-23 19:35 米字键 阅读(395) 评论(0) 推荐(0) 编辑