【发布时间】:2013-07-26 04:56:39
【问题描述】:
我正在阅读有关 Streams 和 I/O 的 java 教程。我遇到了一个声明,上面写着..
Buffered input streams read data from a memory area known as a buffer; the native input API is called only when the buffer is empty. Similarly, buffered output streams write data to a buffer, and the native output API is called only when the buffer is full.
这里为什么只有在缓冲区为空时才调用 Native APIs?如果是这样,在空缓冲区上调用API需要什么?
【问题讨论】:
标签: java iostream bufferedreader