|
Java™ by example!
|
|
|
What is the performance gain of a BufferedInputStream over an InputStream?
IO happens a lot faster if you wrap your original InputStream using BufferedInputStream. Internally, it uses a default buffer size of 2048 bytes. For example, wrapping a FileInputStream in a BufferedInputStream will result in a significant performance gain. Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|