BufferedReaderin=newBufferedReader(newFileReader("foo.in"));willbuffertheinputfromthespecifiedfile.Withoutbuffering,eachinvocationofread()orreadLine()couldcausebytestobereadfromthefile,convertedintocharacters,andthenreturned,whichcanbeveryinefficient.这段话怎么理解,如果使用了缓冲区就不会涉及到byte转character?求两个读取文件的流程和效率对比,先行谢过了。
慕森王
慕的地6264312
相关分类