最新日志

2019-12-25 aflfte2011

创建线程方式一

package com.aflfte.thread;
/**
 * 创建线程方式一
 * 1。创建:继承thread+重写run方法
 * @author jinhao
 *
 */
public class StartThread extends Thread {

2019-12-25 aflfte2011

FileUtils的使用

package com.aflfte.commons;

import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.apache.commons.io.FileUtil

2019-12-25 aflfte2011

利用合并流合并文件

package com.aflfte.io2;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
im

2019-12-24 aflfte2011

使用随机读取和写入流分割文件

package com.aflfte.io;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.List;

/**
 * 面向

2019-12-24 aflfte2011

打印流的使用

package com.aflfte.io;

import java.io.BufferedOutputStream;
import java.io.FileDescriptor;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
impor

2019-12-24 aflfte2011

对象流的使用

package com.aflfte.io;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStrea

2019-12-24 aflfte2011

数据流的使用

package com.aflfte.io;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputSt

2019-12-24 aflfte2011

转换流使用方法

package com.aflfte.io;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.

2019-12-24 aflfte2011

弹球游戏练习

package com.aflfte.ballgame;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.WindowAdapte

2019-12-24 aflfte2011

IO缓冲流的使用(BufferedInputStream和bufferedOutputstream)

package com.aflfte.io2;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * 使用BufferedInputStream提升文件读取性能

«... 7 8 9 10 11 12 13 14 15 16 17 ... »