When I used BufferedInputStream and I specify a buffer size, Dalvik gives me this warning - Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
But right now, my buffer size is already at 8k. What am I doing wrong?
Just use:
BufferedReader br = new BufferedReader(new InputStreamReader(is), 8192);
instead of:
BufferedReader br = new BufferedReader(new InputStreamReader(is));
Note:
8192 (8k) is the size of the buffer in characters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With