• FileInputStream和FileOutputStream类分别用来创建磁盘文件的输入流和输出流对象,通过它们的构造函数来指定文件路径和文件名。
  • 创建FileInputStream实例对象时,指定的文件应当是存在和可读的。创建FileOutputStream实例对象时,如果指定的文件已经存在,这个文件中的原来内容将被覆盖清除。
  • 对同一个磁盘文件创建FileInputStream对象的两种方式:   (1)FileInputStream inOne = new FileInputStream("hello.test");     (2)File f = new File("hello.test");      FileInputStream inTwo = new FileInputStream(f);
  • 创建FileOutputStream实例对象时,可以指定还不存在的文件名,但不能指定一个已被其他程序打开了的文件。
 
思考:要将A文件的内容写入B文件,在程序代码中,是用输出类对象,还是用输入类对象来连接A文件并完成对A文件的操作呢?
 
(要记住:这里说的输入和输出的概念都是相对这个应用程序而言的,而不相对这个文件而言的。如下图)
所以我们应该创建一个输入类来读取A文件的内容,然后创建一个输出类将这些内容输出到B文件中。(如下图)
 aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAASUAAABoCAIAAAA4tHEmAAAgAElEQVR4nO19eZwV1bVudTfNoDEOv9wkLzfJvS/PhGs0Jrwbx5uX5EbvjXMUTZznATWAAjI2IGNEQECm7oZu5lEURcEBkLGhaQiIMgo09Hj6zGPNe/jeH7tqnzqnB2nkkm7s73d+3XXOqapTtff69lp7rbVXKehABzpwrqD8oy+gAx34BqGDbx3owLlDB9860IFzhw6+daAD5w4dfOtAB84dOvjWgQ6cO7RVvvHM1xkd3fhk7j/G068m9gQYwMAZwADivHV3oGdyRe0MvKlX9nctHpXxqec/z/is5StgorMAeNv/TIWiTaDt8I1ldy9jzosD3ibO2AfgGSThLiUo4B7IKJgFEDj7A4TCprAJiAVG3J92D2QAASOgNrgJ6OAmOBE7WIAJEIA7JGRot32fAQ5vO1P3RZwXo2BcCL3b7F6pzzqKejuLybZl3D0PzRjyWNaFgAOUgRJQBk7kqCcOpGDyJ9pdy7dhvvEMvsmOBJobeAlApMryvAgFMwATkiCEw+awCWwTxOEbk6qPePimg6vgOrgNDgqYgAFYDt8I+HnIt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gkmEEzk95hLqqjgqO50yZ47OWVpPin63IE7QMYX7Csh2y+Sbh26NeAjCYYvHCVD5rA/HMLG58FiKYe68VnHtkm8AZIdzR9fZHCYFcVZyEIAKLwjhIBzEeXaHmOk55VyJjCM5BbyY41Y5i/Vqzk+kHcQOr4St4XlggKhxZ8oIG3dsEEYkqQhAGCgDZxwk/VV6pnAeoj3zjXu2QQDbwyvne+raMMKZBi6e1iL918z1kbiUcx/pcp5291lCtn5jLfHNEy0gnuqg0sUJZ90qox47tINvbRwyCoS0TeIYNl4Lxeu5TouI1345f22Zs4p0M7Gsz1yLgzVqbZY+qJEfJfur8xTnDd860IF2gA6+daAD5w4dfOtAB84dOvjWgQ6cO3TwrQMdOHfo4FsHOnDu0MG3DnTg3KGDbx3owLlDB9860IFzhw6+daAD5w4dfOtAB84dOvjWgQ6cO3TwrQMdOHfo4FsHOnDu0MG3DnTg3OH/A1AYncD7zvupAAAAAElFTkSuQmCC" alt="" />
编程实例:用FileOutputStream类向文件中写入一个串字符,然后用FileInputStream读出写入的内容。
 
//FileStream.java
 
import java.io.*;
 
public class FileStream{
   public static void main(String[] args) throws Exception {
      FileOutputStream out = new FileOutputStream("hello.txt");
      out.write("www.sina.com.cn".getBytes()); //把字符串转化为字节数组并写入到流中
      out.close();
 
      byte[] buf = new byte[1024];
      File f = new File("hello.txt");
      FileInputStream in = new FileInputStream(f);
      int len = in.read(buf); //读取内容到字节数组中
      System.out.println(new String(buf,0,len)); //String构造函数把字节数组转化为字符串
      in.close();
   }
}
 
 
 
Reader类和Writer类
 
  • Reader和Writer是所有字符流类的抽象基类,用于简化对字符串的输入输出编程,即用于读写文本数据。
  • 二进制文件和文本文件的区别。严格的说文件系统中的每个文件都是二进制文件。各种文本字符是由一个或几个字节组成的,其中每个字节的数 据不能是任意的。如果一个文件中的每个字节或每相邻的几个字节中的数据都可以表示成某种字符,我们就可以称这个文件为文本文件。可见文本文件只是二进制文 件的一种特例。为了与文本文件相区别,人们又把文本文件以外的文件称之为二进制文件。在概念上我们可以简单的认为:如果一个文件专用于存储文本字符而没有 包含字符之外的其他数据,就称之为文本文件,除此之外的文件就是二进制文件。
文本文件是指完全由可见字符组成的文件。所谓可见字符是指ASCII码为32到126的字符、回车符(ASCII码13)、换行符(ASCII码10)、制表符(ASCII码9)、以及所有汉字字符(当然也包括其他字符集如韩文、日文、阿拉伯文等等)。如果是Unicode文本,则还包括ASCII码0。
而二进制文件则有多种定义方式,广义的二进制文件是指电脑中的所有文件(包括文本文件),因为电脑中的所有文件其实都是以二进制方式存储的,也就是说每个字符(包括可见字符、控制字符)最终都是以0和1的形式存储在硬盘等介质中的(这也就是为什么说电脑只认识0和1这两个数字的原因);
而狭义的二进制文件则是相对于文本文件而言的,即只要文件中含有除可见字符之外的其他字符(主要是控制字符),就是二进制文件;
而比狭义的二进制文件更有特指性的定义方式则是指可执行文件(EXE)、库函数文件(DLL)、图片视频、数据库文件等等一切由程序代码、机器码、特定的二进制代码和数据等组成的有实际意义的文件。
 
Reader与Writer类及其子类(FileReader和FileWriter类等)主要用于读取文本格式的内容,而InputStream和OutputStream类及它们的子类主要读取二进制格式的内容。
 
编程实例:用FileWriter类向文件中写入一个串字符,然后用FileReader读出写入的内容。
 
//FileStream2.java
 
import java.io.*;
 
public class FileStream2{
   public static void main(String[] args) throws Excetpion {
      FileWriter out = new FileWriter("hello2.txt");
      out.write("www.sina.com.cn"); //在此可以直接写入字符串,不用转化为字节数组
      out.close();
 
      char[] buf = new char[1024];  //字符数组
      FileReader in = new FileReader("hello2.txt");
      int len = in.read(buf); //此时的read方法可以读取一个字符或几个字符,len代表实际读取到的字符的个数。
      System.out.println(new String(buf,0,1024)); //String构造函数把字符数组转化为字符串。
      in.close();
   }
}

FileInputStream 用于读取本地文件中的字节数据,继承自InputStream类

构造方法摘要
FileInputStream(File file) 
          通过打开一个到实际文件的连接来创建一个FileInputStream,该文件通过文件系统中的 File 对象 file 指定。
FileInputStream(FileDescriptor fdObj) 
          通过使用文件描述符 fdObj 创建一个FileInputStream,该文件描述符表示到文件系统中某个实际文件的现有连接。
FileInputStream(String name) 
          通过打开一个到实际文件的连接来创建一个FileInputStream,该文件通过文件系统中的路径名 name 指定。
方法摘要
 int available() 
          返回下一次对此输入流调用的方法可以不受阻塞地从此输入流读取(或跳过)的估计剩余字节数。
 void close() 
          关闭此文件输入流并释放与此流有关的所有系统资源。
protected  void finalize() 
          确保在不再引用文件输入流时调用其close 方法。
 FileChannel getChannel() 
          返回与此文件输入流有关的唯一FileChannel 对象。
 FileDescriptor getFD() 
          返回表示到文件系统中实际文件的连接的 FileDescriptor 对象,该文件系统正被此FileInputStream 使用。
 int read() 
          从此输入流中读取一个数据字节。
 int read(byte[] b) 
          从此输入流中将最多 b.length 个字节的数据读入一个 byte 数组中。
 int read(byte[] b, int off, int len) 
          从此输入流中将最多 len 个字节的数据读入一个 byte 数组中。
 long skip(long n) 
          从输入流中跳过并丢弃 n 个字节的数据。

其中read()返回的是读入的一个字节所对应的int值(0-255),而read(byte[] b) 和read(byte[] b, int off, int len) 返回的是读入的字节数

FileOutputStream用于将字节数据写出到文件。继承自OutputStream类

构造方法摘要
FileOutputStream(File file) 
          创建一个向指定 File 对象表示的文件中写入数据的文件输出流。
FileOutputStream(File file, boolean append) 
          创建一个向指定 File 对象表示的文件中写入数据的文件输出流。
FileOutputStream(FileDescriptor fdObj) 
          创建一个向指定文件描述符处写入数据的输出文件流,该文件描述符表示一个到文件系统中的某个实际文件的现有连接。
FileOutputStream(String name) 
          创建一个向具有指定名称的文件中写入数据的输出文件流。
FileOutputStream(String name, boolean append) 
          创建一个向具有指定 name 的文件中写入数据的输出文件流。
方法摘要
 void close() 
          关闭此文件输出流并释放与此流有关的所有系统资源。
protected  void finalize() 
          清理到文件的连接,并确保在不再引用此文件输出流时调用此流的 close 方法。
 FileChannel getChannel() 
          返回与此文件输出流有关的唯一FileChannel 对象。
 FileDescriptor getFD() 
          返回与此流有关的文件描述符。
 void write(byte[] b) 
          将 b.length 个字节从指定 byte 数组写入此文件输出流中。
 void write(byte[] b, int off, int len) 
          将指定 byte 数组中从偏移量 off 开始的 len 个字节写入此文件输出流。
 void write(int b) 
          将指定字节写入此文件输出流。

实例代码:使用这两个类进行文件复制:

    1. import java.io.FileInputStream;
    2. import java.io.FileOutputStream;
    3. import java.io.IOException;
    4. class IODemo
    5. {
    6. public static void main(String[] args)
    7. {
    8. try
    9. {
    10. //使用FileInputStream和FileOutputStream进行文件复制
    11. FileInputStream fis=new FileInputStream("a.txt");
    12. FileOutputStream fos=new FileOutputStream("b.txt");
    13. int read;
    14. //read=fis.read();
    15. byte b[]=new byte[1024];
    16. //读取文件,存入字节数组b,返回读取到的字符数,存入read,默认每次将b数组装满
    17. read=fis.read(b);
    18. while(read!=-1)
    19. {
    20. fos.write(b,0,read);
    21. read=fis.read(b);
    22. //read=fis.read();
    23. }
    24. fis.close();
    25. fos.close();
    26. }
    27. catch (IOException e)
    28. {
    29. e.printStackTrace();
    30. }
    31. }
    32. }

FileInputStream与FileOutputStream类的更多相关文章

  1. FileInputStream与FileOutputStream类 Reader类和Writer类 解析

    FileInputStream和FileOutputStream类分别用来创建磁盘文件的输入流和输出流对象,通过它们的构造函数来指定文件路径和文件名. 创建FileInputStream实例对象时,指 ...

  2. java-io-FileInputStream与FileOutputStream类

    本文转载这里FileInputStream和FileOutputStream类需要注意的问题:  1.FileInputStream和FileOutputStream类分别用来创建磁盘文件的输入流和输 ...

  3. 深入解析FileInputStream和FileOutputStream

    http://swiftlet.net/archives/1363 FileInputStream和FileOutputStream类属于字节类,可以操作任意类型的文件.在数据流的处理过程中,有两种情 ...

  4. 字节流与字符流(FileInputStream类和FileOutputStream类)

    FileInputStream类和FileOutputStream类中,第一个类的源端和第二个类的目的端都是磁盘文件,它们的构造方法允许通过文件的路径名来构造相应的流.例如: FileInputSte ...

  5. FileInputStream类与FileOutputStream类

    FileInputStream类是InputStream类的子类.他实现了文件的读取,是文件字节输入流.该类适用于比较简单的文件读取,其所有方法都是从InputStream类继承并重写的.创建文件字节 ...

  6. 字节流, FileOutputStream类,FileInputStream类,复制文件,字符流

    字节输出流OutputStream OutputStream此抽象类,是表示输出字节流的所有类的超类.操作的数据都是字节 基本方法: 子类可继承调用以上方法 FileOutputStream类 构造方 ...

  7. 【Java IO】FileInputStream 和 FileOutputStream

    class FileInputStream extends  InputStream implements Closeable

  8. FileInputStream和FileOutputStream详解

    一.引子 文件,作为常见的数据源.关于操作文件的字节流就是 FileInputStream & FileOutputStream.它们是Basic IO字节流中重要的实现类.二.FileInp ...

  9. java-IO流-字节流-概述及分类、FileInputStream、FileOutputStream、available()方法、定义小数组、BufferedInputStream、BufferedOutputStream、flush和close方法的区别、流的标准处理异常代码

    1.IO流概述及其分类 * 1.概念      * IO流用来处理设备之间的数据传输      * Java对数据的操作是通过流的方式      * Java用于操作流的类都在IO包中      *  ...

随机推荐

  1. dedecms织梦 v5.6 两处跨站漏洞

    漏洞版本: dedecms织梦 v5.6 漏洞描述: DedeCMS内容管理系统软件采用XML名字空间风格核心模板:模板全部使用文件形式保存,对用户设计模板.网站升级转移均提供很大的便利,健壮的模板标 ...

  2. python爬虫——利用BeautifulSoup4爬取糗事百科的段子

    import requests from bs4 import BeautifulSoup as bs #获取单个页面的源代码网页 def gethtml(pagenum): url = 'http: ...

  3. [ACM] POJ 2524 Ubiquitous Religions (并查集)

    Ubiquitous Religions Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 23093   Accepted:  ...

  4. 吐槽win7

    在纠结了N次后,终于重装win7了.其间还是不死心,又找了新的xp版本来装了一下,确实不行,才心不甘情不愿地再次回到win7下. 说实话,Win7的各种新功能,我没有感觉到有多好,只有不适应,如: 资 ...

  5. synthesis-of-weak-property-only-allowed-in-arc-or-gc-mode ARC属性

    synthesis-of-weak-property-only-allowed-in-arc-or-gc-mode ARC属性 错误提示: 1:确认你的项目是 ARC环境: 2:如果 ARC下出现上面 ...

  6. PHP Filesysten函数

    PHP 5 Filesystem 函数 PHP Filesystem 简介 Filesystem 函数允许您访问和操作文件系统. 安装 Filesystem 函数是 PHP 核心的组成部分.无需安装即 ...

  7. Net作业调度(一) -Quartz.Net入门 Quartz表达式生成器 [转]

    背景 很多时候,项目需要在不同个时刻,执行一个或很多个不同的作业. Windows执行计划这时并不能很好的满足需求了. 这时候需要一个更为强大,方便管理,集部署的作业调度了. 介绍 Quartz一个开 ...

  8. 查看慢sql语句

    查看慢sql语句 st.text AS SQL_Full --父级完整语句 ,) , ((CASE statement_end_offset THEN DATALENGTH(st.text) ELSE ...

  9. chrome 禁止自动更新

      禁止chrome自动更新 CreateTime--2017年7月4日09:07:01Author:Marydon 版本号:59.0.3071.115 x64 第一步:禁止Google更新服务 参考 ...

  10. Apache Ant和Apache Maven的区别

    Apache Ant和Apache Maven的区别 分类: ANT Maven 2013-12-10 18:47 1477人阅读 评论(26) 收藏 举报 ———摘自<maven权威指南> ...