这段代码实在是看不懂,请大神帮忙分析一下!
FileInputStream fis = null;
fis = openFileInput("a.txt");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte [] buffer = new byte[1024];
int len=0;
while((len=fis.read(buffer))!=-1){
baos.write(buffer, 0, len);
content = baos.toString();
fis.close();
baos.close();
return content;