例子
读取文件
import java.io.*;public class Main {public static void main(String[] args) throws Exception {String path = "./story.txt";BufferedInputStream bis = new BufferedInputStream(new FileInputStream(path));byte[] buffer = new byte[2048];int readLen = 0;while ((readLen = bis.read(buffer)) != -1) {System.out.println(new String(buffer, 0, readLen));}bis.close();}}
