Java课 IO流详解.pptVIP

  • 3
  • 0
  • 约1.43万字
  • 约 34页
  • 2017-05-27 发布于湖北
  • 举报
基本字节流类(输入流) 基本字节流类(输出流) 基本字符流类(输入流) 基本字符流类(输出流) /** 线程下载类 */ class DownloadRunnable implements Runnable { private final int start; private final int end; private final URL srcURL; private final File destFile; public static final int BUFFER_SIZE = 8192; //缓冲区大小 DownloadRunnable(int start,int end, URL srcURL, File destFile) { this.start = start; this.end = end; this.srcURL = srcURL; this.destFile = destFile; } public void run() { System.out.println(Thread.currentThread().getName() + 启动...); BufferedInputStream bis = null; RandomAccessFile ras = null;

文档评论(0)

1亿VIP精品文档

相关文档