关于读入大型文件(内有繁体中文),内存java.lang.OutOfMemoryError的问题
文件大小 :15M左右
读入代码 :
BufferedInputStream bisB001 = new BufferedInputStream(new FileInputStream(afileB001));
byte[] byB001 = new byte[new Long(afileB001.length()).intValue()];
bisB001.read(byB001);
String strFile = new String(byB001,"Big5");
报错:
java.lang.OutOfMemoryError
<<no stack trace available>>
Exception in thread "main"
如何解决