<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>输入输出流 on My Blog</title>
    <link>http://localhost:1313/tags/%E8%BE%93%E5%85%A5%E8%BE%93%E5%87%BA%E6%B5%81/</link>
    <description>Recent content from My Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    
    <managingEditor>3453434429@qq.com (ArenBase)</managingEditor>
    <webMaster>3453434429@qq.com (ArenBase)</webMaster>
    
    <copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright>
    
    <lastBuildDate>Tue, 26 May 2026 00:00:00 +0000</lastBuildDate>
    
    
    <atom:link href="http://localhost:1313/tags/%E8%BE%93%E5%85%A5%E8%BE%93%E5%87%BA%E6%B5%81/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>字符输出流与字节输出流实现文件复制</title>
      <link>http://localhost:1313/post/%E5%AD%97%E7%AC%A6%E8%BE%93%E5%87%BA%E6%B5%81%E4%B8%8E%E5%AD%97%E8%8A%82%E8%BE%93%E5%87%BA%E6%B5%81/</link>
      <pubDate>Tue, 26 May 2026 00:00:00 &#43;0000</pubDate>
      <author>3453434429@qq.com (ArenBase)</author>
      <guid>http://localhost:1313/post/%E5%AD%97%E7%AC%A6%E8%BE%93%E5%87%BA%E6%B5%81%E4%B8%8E%E5%AD%97%E8%8A%82%E8%BE%93%E5%87%BA%E6%B5%81/</guid>
      <description>
        <![CDATA[<h1>字符输出流与字节输出流实现文件复制</h1><p>作者：ArenBase（3453434429@qq.com）</p>
        
          <h1 id="java-io-流复制文件练习">
<a class="header-anchor" href="#java-io-%e6%b5%81%e5%a4%8d%e5%88%b6%e6%96%87%e4%bb%b6%e7%bb%83%e4%b9%a0"></a>
Java I/O 流复制文件练习
</h1><p>本练习演示了如何使用 <strong>字符缓冲流</strong> 和 <strong>字节缓冲流</strong> 实现文件的复制。其中 <code>BufferedReader</code> + <code>BufferedWriter</code> 适合复制<strong>文本文件</strong>，而 <code>BufferedInputStream</code> + <code>BufferedOutputStream</code> 可以复制<strong>任意类型</strong>的文件（图片、视频、可执行文件等）。</p>
        
        <hr><p>本文2026-05-26首发于<a href='http://localhost:1313/'>My Blog</a>，最后修改于2026-05-26</p>]]>
      </description>
      
        <category>Java</category>
      
    </item>
    
  </channel>
</rss>
