2013年10月7日
摘要: 1.readerpackage com.io.Reader;import java.io.BufferedReader;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.InputStreamReader;public class InputStreamReaderTest { /**InputStreamReader类的用法 ,主要的是用于把 字节流改变成字符流 * @param args * @throws FileNotFoundException */ publi... 阅读全文
posted @ 2013-10-07 13:09 邵邵 阅读(563) 评论(0) 推荐(0) 编辑
摘要: 1.package com.zh.serializable;import java.io.*;import java.util.*;public class MySerializable { /**序列化与反序列化的运用,序列化就是把一个对象写到一个输入流中 * 反序列化就是反过来 * @param args * @throws IOException * @throws Exception */ public static void main(String[] args) throws Exception { // TODO Auto-generated method stu... 阅读全文
posted @ 2013-10-07 13:09 邵邵 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1.package com.io.Stream;import java.io.*;public class NyFileInputStream1 { /** * 读取文件的streamIO * * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub new NyFileInputStream1(); } public NyFileInputStream1(){ InputStream fis=null; FileOutputStream fos=n... 阅读全文
posted @ 2013-10-07 13:07 邵邵 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1.package com.io.File;import java.io.*;import java.util.Date;public class UseFile { /** * 一些File的用法 * @param args * @throws IOException */ public static void main(String[] args) throws IOException { // TODO Auto-generated method stub File dir1=new File("D:\\dir1"... 阅读全文
posted @ 2013-10-07 13:01 邵邵 阅读(279) 评论(0) 推荐(0) 编辑

淘宝美工兼职招聘