2014年3月6日

byte 读写文件

摘要: import java.io.ByteArrayOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;public class FileHelper {//第一种获取文件内容方式 public byte[] getContent(String filePath) throws IOException { File file = new File(filePath); long fileSize = f.. 阅读全文

posted @ 2014-03-06 15:21 yujian_bcq 阅读(585) 评论(0) 推荐(0) 编辑

导航