写在前面:本文章基本覆盖了java IO的全部内容,java新IO没有涉及,因为我想和这个分开,以突出那个的重要性,新IO哪一篇文章还没有开始写,估计很快就能和大家见面。照旧,文章 依旧以例子为主,因为讲解内容的java书很多了,我觉的学以致用才是真。代码是写出来的,不是看出来的。

最后欢迎大家提出意见和建议。

  • File
  • File.separator和File.pathSeparator
  • RandomAccessFile
  • FileOutputStream和FileInputStream
  • Reader和Writer
  • OutputStreramWriter 和InputStreamReader
  • ByteArrayInputStream和ByteArrayOutputStream
  • PipedOutputStream和PipedInputStream
  • PrintStream
  • BufferedReader和BufferedWriter
  • Scanner
  • DataOutputStream和DataInputStream
  • SequenceInputStream
  • ZipOutputStream和ZipEntry和ZipOutputStream和ZipInputStream
  • PushBackInputStream
  • ObjectInputStream和ObjectOutputStream
  • Externalizable接口

【案例1】创建一个新文件

import java.io.*;
class hello{
public static void main(String[] args) {
File f=new File("D:\\hello.txt");
try{
f.createNewFile();
}catch (Exception e) {
e.printStackTrace();
}
}
}

【运行结果】:

程序运行之后,在d盘下会有一个名字为hello.txt的文件。

import java.io.*;
class hello{
public static void main(String[] args) {
System.out.println(File.separator);
System.out.println(File.pathSeparator);
}
}

【运行结果】:

\

;

此处多说几句:有些同学可能认为,我直接在windows下使用\进行分割不行吗?当然是可以的。但是在linux下就不是\了。所以,要想使得我们的代码跨平台,更加健壮,所以,大家都采用这两个常量吧,其实也多写不了几行。呵呵、

现在我们使用File类中的常量改写上面的代码:

import java.io.*;
class hello{
public static void main(String[] args) {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
try{
f.createNewFile();
}catch (Exception e) {
e.printStackTrace();
}
}
}

你看,没有多写多少吧,呵呵。所以建议使用File类中的常量。

删除一个文件

/**
* 删除一个文件
* */
import java.io.*;
class hello{
public static void main(String[] args) {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
if(f.exists()){
f.delete();
}else{
System.out.println("文件不存在");
} }
}

创建一个文件夹

/**
* 创建一个文件夹
* */
import java.io.*;
class hello{
public static void main(String[] args) {
String fileName="D:"+File.separator+"hello";
File f=new File(fileName);
f.mkdir();
}
}

【运行结果】:

D盘下多了一个hello文件夹

列出指定目录的全部文件(包括隐藏文件):

/**
* 使用list列出指定目录的全部文件
* */
import java.io.*;
class hello{
public static void main(String[] args) {
String fileName="D:"+File.separator;
File f=new File(fileName);
String[] str=f.list();
for (int i = 0; i < str.length; i++) {
System.out.println(str[i]);
}
}
}

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK4AAACZCAIAAAA5EZasAAAKh0lEQVR4nO2cPZaDOBCEuZQTTuOIozgm3Wxyp/s4ht/b2JeYG7ABLVC3qoX4s42nvmgGhH6LFqiEq5+fn3/+/e+ff//7zfG4XarrPZvkcBbW4X6tLrfHgvzLL7hfpSLjH6UFqNSLa1jG43a5XFYMV0UpLL/go6XwuF0ut8eymv3+/uak8LhdqiG7+7UKSNWnI6Etwzjdr3Lofq0ut/vtUlXVkEm4QtJPw3q/VpfbTZ8NpVfj5UV10MniE4/bZb7XVU2ijkwLglKIi8ajkJOCba+q8fSPTZYyKMHoLBodda0+nkghlKa6Lr4jbQvGqlemX4ZUQ0HDGZV87M34bGjxNZRwvyYXe3WYkso/SRNyfYhr4hVkpKBLUxVRBThSQO2Nz469BrolKWO6VYzQos6L2jke11KYIoEhGgZ944URN9E7rgf620SFqcZ+XJitg4m3Xvh124hqghubSMGWheey/ASRtDftK5jMbUP0t6kPuCN/0QQB7x49DKCLd5XC43YBU8lcHWakUBIVkBRAY0ukkLvMdhlur+Q65eUk0yUY0oD6Wy4F1XV6UpnKi+IwLGybFIye8QSR1iE+GHfbkmcFG5+8guYmCFSalkJUJ9zeoRbX66gqL1lcgDo4/p+MZazBcLzwDSLcU+7Dy74TxFTA5XodM56rg37Cu215g4hua1DQ1sdGSYqiftzeZMS9ZFEN9LFw5HG7VNfrNamePl4oBbKdFS94O+G9hxdOEGRvkmDwMigFIlAKZAmUAhEmKfyQv031E6TQk78NpUAESoEIvh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Y1N46fMa53hOa1CYqlZnUXrUS1pnU0NNb6N8thib1hqhQMnuvM6lxzsu6bCk0qdeZ1H4D9jCpuwZNB8cqgSb1JpO6yDsuNqmjSoI+fsuzAoBrRN8PpUAESoEItKOIQCkQgVIgwlnsKLIBvHhpOYsUPsyZPJdJTSm8qiCa1DSpx1p8hEltqm+baRybdDRpUn+hSd01eQMVjyZNanPPnN6kfrZ1kgj2lj1Fk/q7TGr8VLZOCjSpz2JSg8uTmUHwpRBViSb1WU3q3OVTajsNj88taaa0o/4geDQphT8IpUCETVIg3w+lQARKgQgHSQG9P5X5Y3sVzkebpWApbDVG4TLN6hGKF1xKMqEUVpFKYYeO3NdRfrZ1XddhxaRpmnqVPMkMcOEZDSMwlIHXmfi8GavUbgDxBvg5/J5y0z77Z9t20xoiWp3DBZECrBTwcipa8Hes55CkyBSJlpCz3m3T9c+2adtm8JzG4p3xftk+l6+iSAqOm+E4C3tLQYoJV49SkKAwXxApIpkgkN12jBRKH07t3W/+75pEEJTCGsoeG90JYoMUnq37+Kft1xkpgPIohTXAl0lkYiaO8BIpQKvUPDXqyysn615NGMnFuCBSwvtWG/VMtGxPEzmAD5HCsh1N5Aje6EGoYM6Q8HZoRxGBUiACpUAESoEI/wMIGzlZDL3hyAAAAABJRU5ErkJggg==" alt="" />

(你的运行结果应该和这个不一样的,呵呵)

但是使用list返回的是String数组,。而且列出的不是完整路径,如果想列出完整路径的话,需要使用listFiles.他返回的是File的数组

列出指定目录的全部文件(包括隐藏文件):

/**
* 使用listFiles列出指定目录的全部文件
* */
import java.io.*; public class hello{
public static void main(String[] args) {
String fileName="D:"+File.separator;
File f=new File(fileName);
File[] str=f.listFiles();
for (int i = 0; i < str.length; i++) {
System.out.println(str[i].getPath());
}
}
}

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAAC+CAIAAACEZRXZAAALwElEQVR4nO2dzYGqMBRGaWo2VOOKUlxTwuzfnjJswCamA99CIX/3hqCRn8s5qxkMJMBnDOS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TR/8PXRJrAn1gauujc7JlOOT4INDp5ajSzplAC/UR6ANTXx+VN5G4mksCLUqM0TVhuHqjbPoRDEGSleWK4ECso49+gXBss+z7K2CXw059B4He3xcnYCMOG+hweED3DE+OG2gAAQINpiDQYIp96qMAb7Lt00d5S0Bltn36KIGGytR/+ugj6OWd/+lU0XSmjjtvUIn6Tx8VJzn8b42oU94AH1P96aPyGspgm0BDZb759FEPAg3rsIo+qt8OQSqCunxDH5Wf1SmvWPisToAyDquPAkgw9Q2mINBgCgINpiDQYAoCDaaoro/u+vHuYJ7q+iiBhi2pro8SaNiS6vroUPhD83ftl+KF55QClFJdH5WeKar9bGvTJb8U728N0QMW8w19NLadxYc1yj/bGmv/BBqW8Q199INA0ynDZ1TXR6Xvoyz4pXge6gUfUV0fVb5glTx9VP2l+EU/SQ8Qgj4KpmDqG0xBoMEUBBpMQaDBFAQaTIE+CqbYoT7KHUB4nx3qowQa3mczfTRaqPx4ffDeYvYQZtlMH03XHBF6aAbmUMhm+uhD/fl4IdD6D80DBGymjz78/5OBiKpAEWvIspk+GhBmOPexwBUjZNlMH1V+Pj56RbhWJM6QAX0UTMHUN5iCQIMpCDSYgkCDKf4DwNc0VdfKQoIAAAAASUVORK5CYII=" alt="" />

判断一个指定的路径是否为目录

/**
* 使用isDirectory判断一个指定的路径是否为目录
* */
import java.io.*;
class hello{
public static void main(String[] args) {
String fileName="D:"+File.separator;
File f=new File(fileName);
if(f.isDirectory()){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}

【运行结果】:YES

 

递归搜索指定目录的全部内容

/**
* 列出指定目录的全部内容
* */
import java.io.*;
class hello{
public static void main(String[] args) {
String fileName="D:"+File.separator;
File f=new File(fileName);
print(f);
}
public static void print(File f){
if(f!=null){
if(f.isDirectory()){
File[] fileArray=f.listFiles();
if(fileArray!=null){
for (int i = 0; i < fileArray.length; i++) {
//递归调用
print(fileArray[i]);
}
}
}
else{
System.out.println(f);
}
}
}
}

aaarticlea/png;base64,iVBORw0KG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QsRwRFqNNfNfQcSxR7QSTIOJYaei4k3a5qsecXuydg5N1J/rYTINZhkv02CGvVXHPrcUhiZcyRiBuSRDE9UyJjACSM3LiaYY6/MRMA1mgPDgJufS9G7tt2ykyS2zVR1xQau6Uh+oqzaUMgVMgyk1xDSYL50GM1AdMnn50LpOZ2fRZBrMCG8tfB5ymCPTYHrhq4xx2CLZqSPtKW6LaqIze7v7tzCptJz76ZNXnAniY6CIIxEdyDZKIrb/WQsSMUF8DtRBfqfw5hYihtH4neR6HPkR7aZPEjFBEMTJIBETBEGcDBIxQRDEyWAaTIkP/FKCWAuova2voZCBxNOEvmw/BFw5zwLTYGpA4cEnw8HD8lS2sebuDagePMxXX35QH9rQnh4G0F6k0FUrEy3ysNWTJvC4lYNUh43uXwDTYPqOjPAT02CCN9vmK3mXNcJJxzSYTfjC+93c2g2HiQS1gW/G/QNgGkzQfzjFM/3anSl1oswZ5e5XnDFBx8NkGkzZV880mJ079PmxH5gGcx5FxSBgR0HvUCGHg2kwfa12bEVeKuqYBrNYG9Nglj8lSfrbtD3TYCZ82tqab9kD7AjOEVTICWAazKTwIBqB/GMkKmohjhzniDhZXRysfbNmmEyDyTSYUuGVVxPh2IssPr5WFB5qxiFnRxiwIzhHb0zE6RN2vC/bRiMnUh+TMkQMqgf6rb11cMIXp0O1H0hf0U9mqnf0iJGnGB8ymQaTaTABrCVWx/58IraWGAqdJOLYpTkW/w8hckdiBQFf+QAAAABJRU5ErkJggg==" alt="" />

使用RandomAccessFile写入文件

/**
* 使用RandomAccessFile写入文件
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
RandomAccessFile demo=new RandomAccessFile(f,"rw");
demo.writeBytes("asdsad");
demo.writeInt(12);
demo.writeBoolean(true);
demo.writeChar('A');
demo.writeFloat(1.21f);
demo.writeDouble(12.123);
demo.close();
}
}

如果你此时打开hello。txt查看的话,会发现那是乱码。


字节流

【向文件中写入字符串】

/**
* 字节流
* 向文件中写入字符串
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
OutputStream out =new FileOutputStream(f);
String str="你好";
byte[] b=str.getBytes();
out.write(b);
out.close();
}
}

查看hello.txt会看到“你好”

当然也可以一个字节一个字节的写。

/**
* 字节流
* 向文件中一个字节一个字节的写入字符串
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
OutputStream out =new FileOutputStream(f);
String str="你好";
byte[] b=str.getBytes();
for (int i = 0; i < b.length; i++) {
out.write(b[i]);
}
out.close();
}
}

结果还是:“你好”

向文件中追加新内容:

/**
* 字节流
* 向文件中追加新内容:
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
OutputStream out =new FileOutputStream(f,true);
String str="Rollen";
//String str="\r\nRollen"; 可以换行
byte[] b=str.getBytes();
for (int i = 0; i < b.length; i++) {
out.write(b[i]);
}
out.close();
}
}

【运行结果】:

你好Rollen

【读取文件内容】

/**
* 字节流
* 读文件内容
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
InputStream in=new FileInputStream(f);
byte[] b=new byte[1024];
in.read(b);
in.close();
System.out.println(new String(b));
}
}

【运行结果】

你好Rollen

Rollen_

但是这个例子读取出来会有大量的空格,我们可以利用in.read(b);的返回值来设计程序。如下:

/**
* 字节流
* 读文件内容
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
InputStream in=new FileInputStream(f);
byte[] b=new byte[1024];
int len=in.read(b);
in.close();
System.out.println("读入长度为:"+len);
System.out.println(new String(b,0,len));
}
}

运行结果】:

读入长度为:18

你好Rollen

Rollen

读者观察上面的例子可以看出,我们预先申请了一个指定大小的空间,但是有时候这个空间可能太小,有时候可能太大,我们需要准确的大小,这样节省空间,那么我们可以这样干:

/**
* 字节流
* 读文件内容,节省空间
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
InputStream in=new FileInputStream(f);
byte[] b=new byte[(int)f.length()];
in.read(b);
System.out.println("文件长度为:"+f.length());
in.close();
System.out.println(new String(b));
}
}

文件长度为:18

你好Rollen

Rollen

将上面的例子改为一个一个读:

/**
* 字节流
* 读文件内容,节省空间
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
InputStream in=new FileInputStream(f);
byte[] b=new byte[(int)f.length()];
for (int i = 0; i < b.length; i++) {
b[i]=(byte)in.read();
}
in.close();
System.out.println(new String(b));
}
}

输出的结果和上面的一样。

细心的读者可能会发现,上面的几个例子都是在知道文件的内容多大,然后才展开的,有时候我们不知道文件有多大,这种情况下,我们需要判断是否独到文件的末尾。

/**
* 字节流
*读文件
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
InputStream in=new FileInputStream(f);
byte[] b=new byte[1024];
int count =0;
int temp=0;
while((temp=in.read())!=(-1)){
b[count++]=(byte)temp;
}
in.close();
System.out.println(new String(b));
}
}

【运行结果】

你好Rollen

Rollen_

提醒一下,当独到文件末尾的时候会返回-1.正常情况下是不会返回-1的


字符流

【向文件中写入数据】

现在我们使用字符流

/**
* 字符流
* 写入数据
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
Writer out =new FileWriter(f);
String str="hello";
out.write(str);
out.close();
}
}

当你打开hello。txt的时候,会看到hello

其实这个例子上之前的例子没什么区别,只是你可以直接输入字符串,而不需要你将字符串转化为字节数组。

当你如果想问文件中追加内容的时候,可以使用将上面的声明out的哪一行换为:

Writer out =new FileWriter(f,true);

这样,当你运行程序的时候,会发现文件内容变为:

hellohello如果想在文件中换行的话,需要使用“\r\n”

比如将str变为String str="\r\nhello";

这样文件追加的str的内容就会换行了。

从文件中读内容:

/**
* 字符流
* 从文件中读出内容
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
char[] ch=new char[(int)f.length()];
Reader read=new FileReader(f);
int count=read.read(ch);
read.close();
System.out.println("读入的长度为:"+count);
System.out.println("内容为"+new String(ch,0,count));
}
}

【运行结果】:

读入的长度为:17

内容为hellohello

hello

当然最好采用循环读取的方式,因为我们有时候不知道文件到底有多大。

/**
* 字符流
* 从文件中读出内容
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName="D:"+File.separator+"hello.txt";
File f=new File(fileName);
char[] ch=new char[(int)f.length()];
Reader read=new FileReader(f);
int temp=0;
int count=0;
while((temp=read.read())!=(-1)){
ch[count++]=(char)temp;
}
read.close();
System.out.println("内容为"+new String(ch,0,count));
}
}

运行结果:

内容为hellohello

hello

关于字节流和字符流的区别

实际上字节流在操作的时候本身是不会用到缓冲区的,是文件本身的直接操作的,但是字符流在操作的 时候下后是会用到缓冲区的,是通过缓冲区来操作文件的。

读者可以试着将上面的字节流和字符流的程序的最后一行关闭文件的代码注释掉,然后运行程序看看。你就会发现使用字节流的话,文件中已经存在内容,但是使用字符流的时候,文件中还是没有内容的,这个时候就要刷新缓冲区。

使用字节流好还是字符流好呢?

答案是字节流。首先因为硬盘上的所有文件都是以字节的形式进行传输或者保存的,包括图片等内容。但是字符只是在内存中才会形成的,所以在开发中,字节流使用广泛。

文件的复制

其实DOS下就有一个文件复制功能,比如我们想把d盘下面的hello.txt文件复制到d盘下面的rollen.txt文件中,那么我们就可以使用下面的命令:

copy d:\hello.txt d:\rollen.txt

运行之后你会在d盘中看见hello.txt.,并且两个文件的内容是一样的,(这是屁话)

下面我们使用程序来复制文件吧。

基本思路还是从一个文件中读入内容,边读边写入另一个文件,就是这么简单。、

首先编写下面的代码:

/**
* 文件的复制
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
if(args.length!=2){
System.out.println("命令行参数输入有误,请检查");
System.exit(1);
}
File file1=new File(args[0]);
File file2=new File(args[1]); if(!file1.exists()){
System.out.println("被复制的文件不存在");
System.exit(1);
}
InputStream input=new FileInputStream(file1);
OutputStream output=new FileOutputStream(file2);
if((input!=null)&&(output!=null)){
int temp=0;
while((temp=input.read())!=(-1)){
output.write(temp);
}
}
input.close();
output.close();
}
}

然后在命令行下面

javac hello.java

java hello d:\hello.txt d:\rollen.txt

现在你就会在d盘看到rollen。txt了,


OutputStreramWriter 和InputStreamReader类

整个IO类中除了字节流和字符流还包括字节和字符转换流。

但是不管如何操作,最后都是以字节的形式保存在文件中的。

将字节输出流转化为字符输出流

/**
* 将字节输出流转化为字符输出流
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName= "d:"+File.separator+"hello.txt";
File file=new File(fileName);
Writer out=new OutputStreamWriter(new FileOutputStream(file));
out.write("hello");
out.close();
}
}

运行结果:文件中内容为:hello

将字节输入流变为字符输入流

/**
* 将字节输入流变为字符输入流
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String fileName= "d:"+File.separator+"hello.txt";
File file=new File(fileName);
Reader read=new InputStreamReader(new FileInputStream(file));
char[] b=new char[100];
int len=read.read(b);
System.out.println(new String(b,0,len));
read.close();
}
}

【运行结果】:hello

前面列举的输出输入都是以文件进行的,现在我们以内容为输出输入目的地,


使用内存操作流

ByteArrayInputStream 主要将内容写入内容

ByteArrayOutputStream  主要将内容从内存输出

/**
* 使用内存操作流将一个大写字母转化为小写字母
* */
import java.io.*;
class hello{
public static void main(String[] args) throws IOException {
String str="ROLLENHOLT";
ByteArrayInputStream input=new ByteArrayInputStream(str.getBytes());
ByteArrayOutputStream output=new ByteArrayOutputStream();
int temp=0;
while((temp=input.read())!=-1){
char ch=(char)temp;
output.write(Character.toLowerCase(ch));
}
String outStr=output.toString();
input.close();
output.close();
System.out.println(outStr);
}
}

rollenholt

内容操作流一般使用来生成一些临时信息采用的,这样可以避免删除的麻烦。


管道流

管道流主要可以进行两个线程之间的通信。

PipedOutputStream 管道输出流

PipedInputStream 管道输入流

/**
* 验证管道流
* */
import java.io.*; /**
* 消息发送类
* */
class Send implements Runnable{
private PipedOutputStream out=null;
public Send() {
out=new PipedOutputStream();
}
public PipedOutputStream getOut(){
return this.out;
}
public void run(){
String message="hello , Rollen";
try{
out.write(message.getBytes());
}catch (Exception e) {
e.printStackTrace();
}try{
out.close();
}catch (Exception e) {
e.printStackTrace();
}
}
} /**
* 接受消息类
* */
class Recive implements Runnable{
private PipedInputStream input=null;
public Recive(){
this.input=new PipedInputStream();
}
public PipedInputStream getInput(){
return this.input;
}
public void run(){
byte[] b=new byte[1000];
int len=0;
try{
len=this.input.read(b);
}catch (Exception e) {
e.printStackTrace();
}try{
input.close();
}catch (Exception e) {
e.printStackTrace();
}
System.out.println("接受的内容为 "+(new String(b,0,len)));
}
}
/**
* 测试类
* */
class hello{
public static void main(String[] args) throws IOException {
Send send=new Send();
Recive recive=new Recive();
try{
//管道连接
send.getOut().connect(recive.getInput());
}catch (Exception e) {
e.printStackTrace();
}
new Thread(send).start();
new Thread(recive).start();
}
}

【运行结果】:

接受的内容为 hello , Rollen


打印流

/**
* 使用PrintStream进行输出
* */
import java.io.*; class hello {
public static void main(String[] args) throws IOException {
PrintStream print = new PrintStream(new FileOutputStream(new File("d:"
+ File.separator + "hello.txt")));
print.println(true);
print.println("Rollen");
print.close();
}
}

【运行结果】:

true

Rollen

当然也可以格式化输出

/**
* 使用PrintStream进行输出
* 并进行格式化
* */
import java.io.*;
class hello {
public static void main(String[] args) throws IOException {
PrintStream print = new PrintStream(new FileOutputStream(new File("d:"
+ File.separator + "hello.txt")));
String name="Rollen";
int age=20;
print.printf("姓名:%s. 年龄:%d.",name,age);
print.close();
}
}

【运行结果】:

姓名:Rollen. 年龄:20.

使用OutputStream向屏幕上输出内容

/**
* 使用OutputStream向屏幕上输出内容
* */
import java.io.*;
class hello {
public static void main(String[] args) throws IOException {
OutputStream out=System.out;
try{
out.write("hello".getBytes());
}catch (Exception e) {
e.printStackTrace();
}
try{
out.close();
}catch (Exception e) {
e.printStackTrace();
}
}
}

【运行结果】:

hello

输入输出重定向

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream; /**
* 为System.out.println()重定向输出
* */
public class systemDemo{
public static void main(String[] args){
// 此刻直接输出到屏幕
System.out.println("hello");
File file = new File("d:" + File.separator + "hello.txt");
try{
System.setOut(new PrintStream(new FileOutputStream(file)));
}catch(FileNotFoundException e){
e.printStackTrace();
}
System.out.println("这些内容在文件中才能看到哦!");
}
}

【运行结果】:

eclipse的控制台输出的是hello。然后当我们查看d盘下面的hello.txt文件的时候,会在里面看到:这些内容在文件中才能看到哦!

保存错误信息

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream; /**
* System.err重定向 这个例子也提示我们可以使用这种方法保存错误信息
* */
public class systemErr{
public static void main(String[] args){
File file = new File("d:" + File.separator + "hello.txt");
System.err.println("这些在控制台输出");
try{
System.setErr(new PrintStream(new FileOutputStream(file)));
}catch(FileNotFoundException e){
e.printStackTrace();
}
System.err.println("这些在文件中才能看到哦!");
}
}

【运行结果】:

你会在eclipse的控制台看到红色的输出:“这些在控制台输出”,然后在d盘下面的hello.txt中会看到:这些在文件中才能看到哦!

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException; /**
* System.in重定向
* */
public class systemIn{
public static void main(String[] args){
File file = new File("d:" + File.separator + "hello.txt");
if(!file.exists()){
return;
}else{
try{
System.setIn(new FileInputStream(file));
}catch(FileNotFoundException e){
e.printStackTrace();
}
byte[] bytes = new byte[1024];
int len = 0;
try{
len = System.in.read(bytes);//System.in返回的是InputStream
}catch(IOException e){
e.printStackTrace();
}
System.out.println("读入的内容为:" + new String(bytes, 0, len));
}
}
}

【运行结果】:

前提是我的d盘下面的hello.txt中的内容是:“这些文件中的内容哦!”,然后运行程序,输出的结果为:读入的内容为:这些文件中的内容哦!


BufferedReader的小例子

注意: BufferedReader只能接受字符流的缓冲区,因为每一个中文需要占据两个字节,所以需要将System.in这个字节输入流变为字符输入流,采用:

BufferedReader buf = new BufferedReader(
                new InputStreamReader(System.in));

下面给一个实例:

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader; /**
* 使用缓冲区从键盘上读入内容
* */
public class BufferedReaderDemo{
public static void main(String[] args){
BufferedReader buf = new BufferedReader(
new InputStreamReader(System.in));
String str = null;
System.out.println("请输入内容");
try{
str = buf.readLine();
}catch(IOException e){
e.printStackTrace();
}
System.out.println("你输入的内容是:" + str);
}
}

运行结果:

请输入内容

dasdas

你输入的内容是:dasdas

Scanner类

其实我们比较常用的是采用Scanner类来进行数据输入,下面来给一个Scanner的例子吧

import java.util.Scanner;

/**
* Scanner的小例子,从键盘读数据
* */
public class ScannerDemo{
public static void main(String[] args){
Scanner sca = new Scanner(System.in);
// 读一个整数
int temp = sca.nextInt();
System.out.println(temp);
//读取浮点数
float flo=sca.nextFloat();
System.out.println(flo);
//读取字符
//...等等的,都是一些太基础的,就不师范了。
}
}

其实Scanner可以接受任何的输入流

下面给一个使用Scanner类从文件中读出内容

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner; /**
* Scanner的小例子,从文件中读内容
* */
public class ScannerDemo{
public static void main(String[] args){ File file = new File("d:" + File.separator + "hello.txt");
Scanner sca = null;
try{
sca = new Scanner(file);
}catch(FileNotFoundException e){
e.printStackTrace();
}
String str1 = sca.next();//读一行
System.out.println("从文件中读取的内容是:" + str1);
String str2 = sca.next();//再读一行
System.out.println("从文件中读取的内容是:" + str2);
}
}

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAALgAAACvCAIAAADBgoOzAAAfeElEQVR4nO2d+XsTV5rv378oj01wnr73PnOf6e5JzyRwMcHYxjjENuls9L1zez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5sowCTknWsWbiJdlIURCREn1xmRAMhMgF2x9uVBWNIx2VIYgRGyZJ+ZsQ0qpGrWqj69YJ1otZEQgb7ykhFUPAEAql1ydaGvY/ZJjh7yUGsyIJFVF6kQeT+ZrBiTIq683NJSC07qVZzgjIGf72lRLvUEg2iuQOdOYsSSyYJdZ69SlgpbYLK/JRCY/IUn8tBiRLPtcoqJ3AW3x9uoEkAylF5xKkqoTy0KYJOasS0NOXkthHjCnBIYByKGbGoPaiNRQkI6ZmM30MVGxmBGACJFkW8FEvLAUsWEYhgRYoXhBJspTkhCQlm4p7W3s9EpZc+Tv0E1dkkraAIYhIee9XO20LlRq1wBJAs7Muk4MKQFAGgorCMJFgaqx0vfAixA5W1N8q2wyJg++8frFmKge6P0SuAUMZJw2/dYdOndIE6S2fwCQgl2DWxYukHp/22HCTl2v5CRLH1c/co0D8PzfTx8hANhNrh0RqOf3qzFRHuD2BTpHuqxn8SY3mKqtbl+pw8SyMJOU7vWLuyvysg9pu0pzh5lD7Vd0y2p7LFWPSFX7/axVPwnMPIxJ/nTXnk/xzSrkFUyEvIKJkFcwEfIKJkJewcQ5OvRy+UTn41rBxDk6wsQznY9rxVn5J5+Vq847fZ7qO5VWnJV/6ll5lyPVWI9Fn+58XCvOyj/xrJxAfcNtS8OczCi9ep2Is/IDZ+V6f2DKZVIgmpi+NBNxVr5/Vr7FhLHeFdkXZiLOyo+clctJV2ZqpzK8NBNxVm4N3E6l2us2ZjdfX16ZiTgr72X0Gyu+WYW8gomQVzAR8gomQl7BRMgrmAh5BRMhr2Ai5BVMhLyCiZBXMBHyCiZCXsFEyCuYCHkFEyGvYCLkFUyEvIKJkNf/zpuQR2mHKtoAAAAASUVORK5CYII=" alt="" />


数据操作流DataOutputStream、DataInputStream类

import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException; public class DataOutputStreamDemo{
public static void main(String[] args) throws IOException{
File file = new File("d:" + File.separator + "hello.txt");
char[] ch = { 'A', 'B', 'C' };
DataOutputStream out = null;
out = new DataOutputStream(new FileOutputStream(file));
for(char temp : ch){
out.writeChar(temp);
}
out.close();
}
}

A B C

现在我们在上面例子的基础上,使用DataInputStream读出内容

import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException; public class DataOutputStreamDemo{
public static void main(String[] args) throws IOException{
File file = new File("d:" + File.separator + "hello.txt");
DataInputStream input = new DataInputStream(new FileInputStream(file));
char[] ch = new char[10];
int count = 0;
char temp;
while((temp = input.readChar()) != 'C'){
ch[count++] = temp;
}
System.out.println(ch);
}
}

【运行结果】:

AB


合并流 SequenceInputStream

SequenceInputStream主要用来将2个流合并在一起,比如将两个txt中的内容合并为另外一个txt。下面给出一个实例:

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.SequenceInputStream; /**
* 将两个文本文件合并为另外一个文本文件
* */
public class SequenceInputStreamDemo{
public static void main(String[] args) throws IOException{
File file1 = new File("d:" + File.separator + "hello1.txt");
File file2 = new File("d:" + File.separator + "hello2.txt");
File file3 = new File("d:" + File.separator + "hello.txt");
InputStream input1 = new FileInputStream(file1);
InputStream input2 = new FileInputStream(file2);
OutputStream output = new FileOutputStream(file3);
// 合并流
SequenceInputStream sis = new SequenceInputStream(input1, input2);
int temp = 0;
while((temp = sis.read()) != -1){
output.write(temp);
}
input1.close();
input2.close();
output.close();
sis.close();
}
}

【运行结果】

结果会在hello.txt文件中包含hello1.txt和hello2.txt文件中的内容。


文件压缩 ZipOutputStream类

先举一个压缩单个文件的例子吧:

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream; public class ZipOutputStreamDemo1{
public static void main(String[] args) throws IOException{
File file = new File("d:" + File.separator + "hello.txt");
File zipFile = new File("d:" + File.separator + "hello.zip");
InputStream input = new FileInputStream(file);
ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(
zipFile));
zipOut.putNextEntry(new ZipEntry(file.getName()));
// 设置注释
zipOut.setComment("hello");
int temp = 0;
while((temp = input.read()) != -1){
zipOut.write(temp);
}
input.close();
zipOut.close();
}
}

【运行结果】

运行结果之前,我创建了一个hello.txt的文件,原本大小56个字节,但是压缩之后产生hello.zip之后,居然变成了175个字节,有点搞不懂。

不过结果肯定是正确的,我只是提出我的一个疑问而已。

上面的这个例子测试的是压缩单个文件,下面的们来看看如何压缩多个文件。

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream; /**
* 一次性压缩多个文件
* */
public class ZipOutputStreamDemo2{
public static void main(String[] args) throws IOException{
// 要被压缩的文件夹
File file = new File("d:" + File.separator + "temp");
File zipFile = new File("d:" + File.separator + "zipFile.zip");
InputStream input = null;
ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(
zipFile));
zipOut.setComment("hello");
if(file.isDirectory()){
File[] files = file.listFiles();
for(int i = 0; i < files.length; ++i){
input = new FileInputStream(files[i]);
zipOut.putNextEntry(new ZipEntry(file.getName()
+ File.separator + files[i].getName()));
int temp = 0;
while((temp = input.read()) != -1){
zipOut.write(temp);
}
input.close();
}
}
zipOut.close();
}
}

【运行结果】

先看看要被压缩的文件吧:

接下来看看压缩之后的:

大家自然想到,既然能压缩,自然能解压缩,在谈解压缩之前,我们会用到一个ZipFile类,先给一个这个例子吧。java中的每一个压缩文件都是可以使用ZipFile来进行表示的

import java.io.File;
import java.io.IOException;
import java.util.zip.ZipFile; /**
* ZipFile演示
* */
public class ZipFileDemo{
public static void main(String[] args) throws IOException{
File file = new File("d:" + File.separator + "hello.zip");
ZipFile zipFile = new ZipFile(file);
System.out.println("压缩文件的名称为:" + zipFile.getName());
}
}

【运行结果】:

压缩文件的名称为:d:\hello.zip

现在我们呢是时候来看看如何加压缩文件了,和之前一样,先让我们来解压单个压缩文件(也就是压缩文件中只有一个文件的情况),我们采用前面的例子产生的压缩文件hello.zip

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile; /**
* 解压缩文件(压缩文件中只有一个文件的情况)
* */
public class ZipFileDemo2{
public static void main(String[] args) throws IOException{
File file = new File("d:" + File.separator + "hello.zip");
File outFile = new File("d:" + File.separator + "unZipFile.txt");
ZipFile zipFile = new ZipFile(file);
ZipEntry entry = zipFile.getEntry("hello.txt");
InputStream input = zipFile.getInputStream(entry);
OutputStream output = new FileOutputStream(outFile);
int temp = 0;
while((temp = input.read()) != -1){
output.write(temp);
}
input.close();
output.close();
}
}

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYIAAAGUCAIAAAC3F7JYAAAgAElEQVR4nO2dfXAb553ft512rvmnM51OZuq7Np3rXWfSxDdzLVWe0EznJlUul6Rx7tI4SpM4xyslsenlcJm7Uyz57SaOBdGmJVOWEvlsiwpjS36hJQsUBZqQaUqyRJnii/gCEhTfCUo09UIREklg8bbY/rHAYl+effZZEOQDQN/P/EZaPPvs8zy7zz4fPLsgFoIMAABcEXg3AADwoAMNAQA4Aw0BADgDDQEAOJOPhioqKgqb2ZDHUfkAgFLHUkMVesxr1yMb8SWxBHpplLUAgGKDSUP5Fc24oZWqDFWzLBew8QCADcNeQ/mVq5WL02xrnA0VpP0AgA3DRkNW6coqWynYZqNsZa7XdplxF1jWAgA2DMcaUtdSXlJKoCuGbjRHsyGWXYCGACgGCqAhillYNJSHCxg3gWgAKAnWqiG6j2xTDJMaq2kOZSpEaSc0BEBJkOctaqI1zPmdzn0cTbJsi8JFGQAlQZ4f2NP1RMlmVZrZLJRtzQuOGm+oFADAl3z+fJFlMqLNSUkxFG5Vqfml1Sp6ywEARYjjL3NQrGElLENm9sJZsgEASh18tRUAwBloCADAGWgIAMAZaAgAwBloCADAGWgIAMAZaAgAwBloCADAGWgIAM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wpJ7qhHNsDYjsGbPMQc9ruNX1PiXnYjyElz1oOCL1hVv1IP262zSP2eKljqSGZuqtWh5iYzfYspJxq5kSrjrGql3JyE4cZpeQC9j37EGKp1Dxm1lipVWZ2I1iJyZxCGefEzdkPiC1rPCCOjoCtvIjZrA5j+WvI9kCYE/P2i/mAmhtgWM6jv1k85chKa+9+pxoibmI1Mildxm4o233MTwT084Gx5DW2TZtnLQckbw1ZCZdy6hJHZR69VpwYb1FrX2oX6N5h7EvbsUeplEVDFIkQV1Fqcdp+p+ShIUMicXesTm7KobCqpQg1xCIgxrYV5IBQhGLOTzyBbc9wymnP2MiSgPxlDvp5LJPOe6vOYMlm1Yss/UE5NRlHAv20IDaefTxYQW+b00rVrQyF0zex2nF6Cx1loO8Cy27md8AZ95qyiuWAWOUn1sLYO8QU22bnd5SKB3y1FQDAGWgIAMAZaAgAwBloCADAGWgIAMAZaAgAwBloCADAGWgIAMAZaAgAwBloCADAmf8Pv45vDhgvD8IAAAAASUVORK5CYII=" alt="" />

ZipInputStream类

当我们需要解压缩多个文件的时候,ZipEntry就无法使用了,如果想操作更加复杂的压缩文件,我们就必须使用ZipInputStream类

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.util.zip.ZipInputStream; /**
* 解压缩一个压缩文件中包含多个文件的情况
* */
public class ZipFileDemo3{
public static void main(String[] args) throws IOException{
File file = new File("d:" + File.separator + "zipFile.zip");
File outFile = null;
ZipFile zipFile = new ZipFile(file);
ZipInputStream zipInput = new ZipInputStream(new FileInputStream(file));
ZipEntry entry = null;
InputStream input = null;
OutputStream output = null;
while((entry = zipInput.getNextEntry()) != null){
System.out.println("解压缩" + entry.getName() + "文件");
outFile = new File("d:" + File.separator + entry.getName());
if(!outFile.getParentFile().exists()){
outFile.getParentFile().mkdir();
}
if(!outFile.exists()){
outFile.createNewFile();
}
input = zipFile.getInputStream(entry);
output = new FileOutputStream(outFile);
int temp = 0;
while((temp = input.read()) != -1){
output.write(temp);
}
input.close();
output.close();
}
}
}

【运行结果】:

被解压的文件:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjEAAAEvCAIAAAA7OQfVAAAgAElEQVR4nOy9d3Qb15n3j/Pu75zd/M559313k9gp+0vijZNNsiUbr6KYTjbJxnZcUrzZuMVNMeUwdtwk27Itq1iWRUqiRJFqpEiJRewEewNBEGJvYhMrWMDeO/r0mef3B0AQGAwKZRaQej7nsTyYuXPn3rnle++d4TwyQBAEQRD/QLbVCUAQBEEQG6hJCIIgiL+AmoQgCIL4C6hJCIIgiL+AmoQgCIL4C6hJCIIgiL+AmoQgCIL4C6hJCIIgiL8g1qSRyTl3VtFW8FHcT0pvpnsII7KIiAjL2omIiLDHEJlbZU3Y9371v7/3+F2LBuPIiK6yYeTz337Vvv3iFwOGtAOLBmNlw8gn9/x+0+8hgiAIsj74qkk3e2oOxPxHXdeRfZHfr75V6qMmhYWF6XS6w5F1zx0u9WpPfqg4FFmn0+nCwsKkNcmjLM1Pz6MsIQiCbGt80qSuwZ4jcT8vbd4/tXC1rPXd96J+1NbX6osmhYaGzs7O/s+BoiutvKNFtYjtXCN3rIr773cLZ2dnQ0NDJTUpvPh1z7LUV9eHsoQgCLJ98a5J/aOjJ5J/k1X9ytj8lb7Js0Nzl9IrAz+48jPNkNarJoWEhIyNjf12f/75Brprlu+a5c830BH1YjtdQx9UUR+qqF+/nTc2NhYSEiKpSU+f3h1e/Pr3Hr/r+y/dbd3+/LdflX3tk797MOb5s5UvfjHgxL1PH/n6cwUvnUdNckUmkzluOyIZZk0RfpYwa70ugiA7GC+aNDQxfTE3KEn94tDcpa6J0+1jJ9pGP+2ZOhujeOp4/JODY5OeNen48eN9fX2PvZlzutLSPs3emmZPVVpOVlhOVlhCVuwTteXtQtNbBaa3CkyPvJ7d19d3/PhxSU3aF/Gjp0/v/t7jdxkLf2XW/NmqSdZtqy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rNl/Sx+L9mpje3/b3XVnHxDF7yHoEIe23uC4Q5sAIGk3TAzKZ51kVjbdPxxjHLPoRodUix581AFHnfSoKd0f94MDBx0+/Aa3ewce4OH0HUzr4bQfeeTetqx66cEk470d6VoEPvwjqn75W/GxL8LR/3uf5Otz2xwdk4Q3hs/n9/f3U+5zivuBm60XTLnPKSjuMEfHpJtyt5NNQUFBQfEHyNEx6W6nioKCgoLifoSKSRQUFBQU9wpUTKKgoKCguFegYhIFBQUFxb3CbznGgYKCgoKC4hOCikkUFBQUFPcKVEyioKCgoLhXoGISBQUFBcW9AhWTKCgoKCjuFaiYREFBQUFxr0DFJAoKCgqKewUqJlFQUFBQ3CtQMYmCgoKC4pHidMQAAAAkSURBVF6BikkUFBQUFPcKVEyioKCgoLhXoGISBQUFBcW9wv8HAuYXvhxvEZgAAAAASUVORK5CYII=" alt="" />


PushBackInputStream回退流

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.PushbackInputStream; /**
* 回退流操作
* */
public class PushBackInputStreamDemo{
public static void main(String[] args) throws IOException{
String str = "hello,rollenholt";
PushbackInputStream push = null;
ByteArrayInputStream bat = null;
bat = new ByteArrayInputStream(str.getBytes());
push = new PushbackInputStream(bat);
int temp = 0;
while((temp = push.read()) != -1){
if(temp == ','){
push.unread(temp);
temp = push.read();
System.out.print("(回退" + (char) temp + ") ");
}else{
System.out.print((char) temp);
}
}
}
}

【运行结果】:

hello(回退,) rollenholt


编码

/**
* 取得本地的默认编码
* */
public class CharSetDemo{
public static void main(String[] args){
System.out.println("系统默认编码为:" + System.getProperty("file.encoding"));
}
}

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAALkAAABZCAIAAADtixKJAAAK7klEQVR4nO2b72/bxhnH9TrZ8nf45bpWXse19ZsCQwYsgPMmfhfCyK4eWmAtBmTDmiFZo0iOXyyHAfO8daj1Yhk0qNicoDgEUDN4iDFkCKA4iLUJIdY1MJrETRwzURyTosTbC/66Ox6lkyg5cvx8QRgUeT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ldV3x5iRealGGqbP+wODlhmAcjjqEEIIxwsTwM8oMXl5uwsmugTUUvsZ4z7sRY4Ufu/xucPQQ83kJAEuuK1y5FJLa99yWK8F7sajQNKyEj0fiABzVED9SiETvLASFU2H+fRhpmjh++I0IMYK/HXLNmMMVez9ZezRPoyD4Lg6kKmAFpCpgBaQqYAWkKmAFpCpgBaQqYAWkKmAFpCpgBaQqYAWkKmAFpCpgBaQqYAWkKmAFpCpgBaQqYAWkKmAFpCpgBaQqYAWkKmAFpCpgBaQqYAWkKmAFpCpgBaQqYAWkKmAFpCpgBaQqYAWkqv8DoSCvfhNKwEkAAAAASUVORK5CYII=" alt="" />

乱码的产生:

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream; /**
* 乱码的产生
* */
public class CharSetDemo2{
public static void main(String[] args) throws IOException{
File file = new File("d:" + File.separator + "hello.txt");
OutputStream out = new FileOutputStream(file);
byte[] bytes = "你好".getBytes("ISO8859-1");
out.write(bytes);
out.close();
}
}

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJ4AAABdCAIAAADbm0g2AAAgAElEQVR4nO2c93cb153o71/xfnnnJbaT3bgkMqnis+/t2Zxt2WxsrahVo2RZlmQnTt+4RLJEiRIpkbIlWY5lWZLFIspqrAI7CRJEJUCCqEQvAwx6x6B3zIXfDzPoIMV4N4Xn4Hs+h+fO935n5s585s4AIEigstnEBsOiXD7F4dy4d6/t6tX/9b+/3f3VY28cajAodtdAROAqIswjLuCBYg+UeKDUA6UeuFrAC1e9UOYlG4VFmRfKPE9ntRzp2qxVJqmg+rjceB4oyueJAklJo4DYXXLULiiudVoELrjihCtOyHfAZQdcdsAlO1yyQ54dcvM/uXbItZEs2uCiDXKskG2FbCtkWSHLApl5GBbIMEO6GdLNkGGBdAIzpJvhghkumPEFM04z40BmMvHV6jk+f2Bmpu3q1e98f2vXvUfmcC5/nLWkumuMnsy48cKRE6dS5i1D7lsDL1Ssi7ycis2WXQHVvVUX06q3+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28SWUwtbprL5/2lWftZsyKtRuiSSz8zL3jMg+sWyicPU6m/+fd79ZV7sZo9YNWeahip1TAsv4khGxB/61/Cvm9dgsUUPtgsI7J3XPiOyTKxaDI/Tj/T+tq92MUUMtXemnyXxUqWtG7EBdkZ8c/Hld7WaMSrXRJM5UB+hKP03mnVv1mDyxnWv/9UA9/poDDI3Tu+8/KVXL0oQYqgBdidEUfosvsav+64HNGeVqn385moQsbZilCTE1QYY6YPUndx/9XV3tZgwwNEHvfvDko0/zalOQo4+wdRGWNszUhqxY6j/rv6/dnFGtFifUsnURtjZiw1J76n8YsjljXbW6iC1QV7tZAwxNMLofUD769Pa7J1pJtbpIgbrazRtgeIrZ85Dy8R++fPdkK/EKueCVmLV762o3Z/x/9L4sLSc1V9QAAAAASUVORK5CYII=" alt="" />

系统编码是utf-8,然后这个用iso8859-1,一般情况下产生乱码,都是由于编码不一致的问题。

修正:        byte[] bytes = "你好".getBytes("utf-8");

对象的序列化

对象序列化就是把一个对象变为二进制数据流的一种方法。

一个类要想被序列化,就行必须实现java.io.Serializable接口。虽然这个接口中没有任何方法,就如同之前的cloneable接口一样。实现了这个接口之后,就表示这个类具有被序列化的能力。

先让我们实现一个具有序列化能力的类吧:

import java.io.*;
/**
* 实现具有序列化能力的类
* */
public class SerializableDemo implements Serializable{
public SerializableDemo(){ }
public SerializableDemo(String name, int age){
this.name=name;
this.age=age;
}
@Override
public String toString(){
return "姓名:"+name+" 年龄:"+age;
}
private String name;
private int age;
}

这个类就具有实现序列化能力,

在继续将序列化之前,先将一下ObjectInputStream和ObjectOutputStream这两个类

先给一个ObjectOutputStream的例子吧:

import java.io.Serializable;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream; /**
* 实现具有序列化能力的类
* */
public class Person implements Serializable{
public Person(){ } public Person(String name, int age){
this.name = name;
this.age = age;
} @Override
public String toString(){
return "姓名:" + name + " 年龄:" + age;
} private String name;
private int age;
}
/**
* 示范ObjectOutputStream
* */
public class ObjectOutputStreamDemo{
public static void main(String[] args) throws IOException{
File file = new File("d:" + File.separator + "hello.txt");
ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(
file));
oos.writeObject(new Person("rollen", 20));
oos.close();
}
}

【运行结果】:

当我们查看产生的hello.txt的时候,看到的是乱码,呵呵。因为是二进制文件。

虽然我们不能直接查看里面的内容,但是我们可以使用ObjectInputStream类查看:

import java.io.File;
import java.io.FileInputStream;
import java.io.ObjectInputStream; /**
* ObjectInputStream示范
* */
public class ObjectInputStreamDemo{
public static void main(String[] args) throws Exception{
File file = new File("d:" + File.separator + "hello.txt");
ObjectInputStream input = new ObjectInputStream(new FileInputStream(
file));
Object obj = input.readObject();
input.close();
System.out.println(obj);
}
}

【运行结果】

姓名:rollen  年龄:20

到底序列化什么内容呢?

其实只有属性会被序列化。

Externalizable接口(与Serializable接口区别)

被Serializable接口声明的类的对象的属性都将被序列化,但是如果想自定义序列化的内容的时候,就需要实现Externalizable接口。

当一个类要使用Externalizable这个接口的时候,这个类中必须要有一个无参的构造函数,如果没有的话,在构造的时候会产生异常,这是因为在反序列话的时候会默认调用无参的构造函数。

现在我们来演示一下序列化和反序列话:

package IO;

import java.io.Externalizable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream; /**
* 序列化和反序列化的操作
* */
public class ExternalizableDemo{
public static void main(String[] args) throws Exception{
ser(); // 序列化
dser(); // 反序列话
} public static void ser() throws Exception{
File file = new File("d:" + File.separator + "hello.txt");
ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(
file));
out.writeObject(new Person("rollen", 20));
out.close();
} public static void dser() throws Exception{
File file = new File("d:" + File.separator + "hello.txt");
ObjectInputStream input = new ObjectInputStream(new FileInputStream(
file));
Object obj = input.readObject();
input.close();
System.out.println(obj);
}
} class Person implements Externalizable{
public Person(){ } public Person(String name, int age){
this.name = name;
this.age = age;
} @Override
public String toString(){
return "姓名:" + name + " 年龄:" + age;
} // 复写这个方法,根据需要可以保存的属性或者具体内容,在序列化的时候使用
@Override
public void writeExternal(ObjectOutput out) throws IOException{
out.writeObject(this.name);
out.writeInt(age);
} // 复写这个方法,根据需要读取内容 反序列话的时候需要
@Override
public void readExternal(ObjectInput in) throws IOException,
ClassNotFoundException{
this.name = (String) in.readObject();
this.age = in.readInt();
} private String name;
private int age;
}

【运行结果】:

姓名:rollen  年龄:20

本例中,我们将全部的属性都保留了下来,

Serializable接口实现的操作其实是吧一个对象中的全部属性进行序列化,当然也可以使用我们上使用是Externalizable接口以实现部分属性的序列化,但是这样的操作比较麻烦,

当我们使用Serializable接口实现序列化操作的时候,如果一个对象的某一个属性不想被序列化保存下来,那么我们可以使用transient关键字进行说明:

下面举一个例子:

package IO;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable; /**
* 序列化和反序列化的操作
* */
public class serDemo{
public static void main(String[] args) throws Exception{
ser(); // 序列化
dser(); // 反序列话
} public static void ser() throws Exception{
File file = new File("d:" + File.separator + "hello.txt");
ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(
file));
out.writeObject(new Person1("rollen", 20));
out.close();
} public static void dser() throws Exception{
File file = new File("d:" + File.separator + "hello.txt");
ObjectInputStream input = new ObjectInputStream(new FileInputStream(
file));
Object obj = input.readObject();
input.close();
System.out.println(obj);
}
} class Person1 implements Serializable{
public Person1(){ } public Person1(String name, int age){
this.name = name;
this.age = age;
} @Override
public String toString(){
return "姓名:" + name + " 年龄:" + age;
} // 注意这里
private transient String name;
private int age;
}

运行结果】:

姓名:null  年龄:20

最后在给一个序列化一组对象的例子吧:

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable; /**
* 序列化一组对象
* */
public class SerDemo1{
public static void main(String[] args) throws Exception{
Student[] stu = { new Student("hello", 20), new Student("world", 30),
new Student("rollen", 40) };
ser(stu);
Object[] obj = dser();
for(int i = 0; i < obj.length; ++i){
Student s = (Student) obj[i];
System.out.println(s);
}
} // 序列化
public static void ser(Object[] obj) throws Exception{
File file = new File("d:" + File.separator + "hello.txt");
ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(
file));
out.writeObject(obj);
out.close();
} // 反序列化
public static Object[] dser() throws Exception{
File file = new File("d:" + File.separator + "hello.txt");
ObjectInputStream input = new ObjectInputStream(new FileInputStream(
file));
Object[] obj = (Object[]) input.readObject();
input.close();
return obj;
}
} class Student implements Serializable{
public Student(){ } public Student(String name, int age){
this.name = name;
this.age = age;
} @Override
public String toString(){
return "姓名: " + name + " 年龄:" + age;
} private String name;
private int age;
}

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwUAAACMCAIAAACiUJKjAAAInUlEQVR4nO3d0ZGzNhQGUIqiI+qhHJqhGefBNpZBEjKG3T97z5lJgoXASC/65op1uhsAQGzdbz8AAMAvk4cAgOjkIQAgOnkIAIhOHgIAopOHAIDo5CEAIDp5CACITh4CAKKThwCA6OQhACA6eQgAiE4eAgCik4cAgOjkIQAgOnkIAIjukjzUda233e256tB+ZwCARl/Fi+7d6tS5fbIft9dW7lM6BQAEd1oeOnBte59K3EnvUzr+/mkBgD/snDx04MLVQWOfw/WhLx8YAPjDTshD2cZ7ez2m1Ptks0v263aPd5959xQA8Iedn4eWU5WPpWsrLZVQ1V4f2n1meQgAAvqJPFRKObt56NN00tJf6AEAVi7PQ5VgtLv5ld0+S7+0UhwqPZs8BACsXPU+dTbErDrv1odKp+oFp/pN7JcBACtX/b39bt0o2yfbsk05pTrT9qDxaVffBQCEcsnvMe7WadJupZbtPbffVSk4tVwOAHC74v/XUUkhu/GlklTqhaV6OwBAhQABAEQnDwEA0clDAEB08hAAEJ08BABEJw8BANHJQwBAdPIQABCdPAQARCcPAQDRyUMAQHTyEAAQnTwEAEQ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y2PpQq1YfS41K4PJSH0kGpDQHAw4XvD1WqINyVUs5qrkwaAFzq4PtDt4afW9ytD1GfjZbQCQB8zyoLAEQnDwEA0clDAEB08hAAEJ08BABEJw8BANHJQwBAdPIQABCdPAQARCcPAQDRyUMAQHT/Aaw9XK4C2FWGAAAAAElFTkSuQmCC" alt="" />

转自:http://www.cnblogs.com/rollenholt/archive/2011/09/11/2173787.html

Java IO流学习总结(2)的更多相关文章

  1. Java IO流学习总结三:缓冲流-BufferedInputStream、BufferedOutputStream

    Java IO流学习总结三:缓冲流-BufferedInputStream.BufferedOutputStream 转载请标明出处:http://blog.csdn.net/zhaoyanjun6/ ...

  2. Java IO流学习总结八:Commons IO 2.5-IOUtils

    Java IO流学习总结八:Commons IO 2.5-IOUtils 转载请标明出处:http://blog.csdn.net/zhaoyanjun6/article/details/550519 ...

  3. Java IO流学习总结(1)

    Java IO流学习总结 Java流操作有关的类或接口: Java流类图结构: 流的概念和作用 流是一组有顺序的,有起点和终点的字节集合,是对数据传输的总称或抽象.即数据在两设备间的传输称为流,流的本 ...

  4. Java IO流学习总结四:缓冲流-BufferedReader、BufferedWriter

    在上一篇文章中Java IO流学习总结三:缓冲流-BufferedInputStream.BufferedOutputStream介绍了缓冲流中的字节流,而这一篇着重介绍缓冲流中字符流Buffered ...

  5. Java IO流学习总结一:输入输出流

    Java IO流学习总结一:输入输出流 转载请标明出处:http://blog.csdn.net/zhaoyanjun6/article/details/54292148 本文出自[赵彦军的博客] J ...

  6. Java IO流学习

    Java IO流学习 Java流操作有关的类或接口: Java流类图结构: 流的概念和作用 流是一组有顺序的,有起点和终点的字节集合,是对数据传输的总称或抽象.即数据在两设备间的传输称为流,流的本质是 ...

  7. JAVA.IO流学习笔记

    一.java.io 的描述 通过数据流.序列化和文件系统提供系统输入和输出.IO流用来处理设备之间的数据传输 二.流 流是一个很形象的概念,当程序需要读取数据的时候,就会开启一个通向数据源的流,这个数 ...

  8. Java IO流学习总结

    Java流操作有关的类或接口: Java流类图结构: 流的概念和作用 流是一组有顺序的,有起点和终点的字节集合,是对数据传输的总称或抽象.即数据在两设备间的传输称为流,流的本质是数据传输,根据数据传输 ...

  9. Java IO流学习总结(转)

    Java流操作有关的类或接口: Java流类图结构: 流的概念和作用 流是一组有顺序的,有起点和终点的字节集合,是对数据传输的总称或抽象.即数据在两设备间的传输称为流,流的本质是数据传输,根据数据传输 ...

  10. 转:Java IO流学习总结

    Java流操作有关的类或接口: Java流类图结构: 流的概念和作用 流是一组有顺序的,有起点和终点的字节集合,是对数据传输的总称或抽象.即数据在两设备间的传输称为流,流的本质是数据传输,根据数据传输 ...

随机推荐

  1. TableView cell自适应高度-----xib

    1.通过xib创建一个cell,将label进行上左下右,进行适配, self.automaticallyAdjustsScrollViewInsets = NO; self.edgesForExte ...

  2. 1137: 零起点学算法44——多组测试数据输出II

    1137: 零起点学算法44--多组测试数据输出II Time Limit: 1 Sec  Memory Limit: 64 MB   64bit IO Format: %lldSubmitted: ...

  3. swust oj(0088)表达式的转换

    表达式的转换(0088) Time limit(ms): 5000 Memory limit(kb): 65535 Submission: 435 Accepted: 93 Accepted 16级卓 ...

  4. 浩哥解析MyBatis源码(十)——Type类型模块之类型处理器

    原创作品,可以转载,但是请标注出处地址:http://www.cnblogs.com/V1haoge/p/6715063.html 1.回顾 之前的两篇分别解析了类型别名注册器和类型处理器注册器,此二 ...

  5. Apache+mod_encoding解决URL中文编码问题

    我们经常在论坛上看到这样的求救贴:  为什么我看不了网站上中文文件名的文件?这时一定会有好心的大侠告诉说,到IE6的工具,Internet选项, 高级里,把"总是以UTF-8发送URL&qu ...

  6. C#,VB.NET 如何将Excel转换为Text

    在工作中,有时我们需要转换文档的格式,之前已经跟大家介绍过了如何将Excel转换为PDF.今天将与大家分享如何将Excel转换为Text.这次我使用的依然是免费版的Spire.XLS for .NET ...

  7. ASP.NET MVC4 微信公众号开发之网页授权(一):搭建基础环境

    首先你得注册并认证一个个人或企业的微信公众号===服务号从而确保获得以下接口权限: 然后打开公众号设置里的功能设置里找到业务域名和网页授权域名分别填上你的域名(注:已备案的域名),如下图所示: 到这里 ...

  8. ActiveMQ学习心得:连接池的简单实现和模板模式的应用

    一.安装activemq 下载地址:https://archive.apache.org/dist/activemq/5.13.0/apache-activemq-5.13.0-bin.zip 下载完 ...

  9. Unix系统操作指令汇总

    一.目录及文件操作命令 1.1 ls 语法: ls [-RadCxmlnogrtucpFbqisf1] [目录或文件--] 说明: ls 命令列出指定目录下的文件,缺省目录为当前目录 ./,缺省输出顺 ...

  10. APP品牌具体有哪几个要素?又是如何操作的?

    对于品牌的一些认识 首先我们要知道,品牌是由用户与公司及其产品&服务互动后所产生的,失去了与用户互动并且承认的是伪品牌,对于开发者来说,APP的品牌要先从标志与颜色考虑起,但实话实说,标志与颜 ...