InputStreams and OutputStreams
suggest changeSyntax
- int read(byte[] b) throws IOException
Remarks
Most code wraps an InputStream in a BufferedInputStream, and an OutputStream in a BufferedOutputStream, instead of calling read or write on a small array every time. Each unbuffered call can become a separate kernel call. There is no class named BufferedStream.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents