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?
1 2 3 |
//Just use: BufferedReader br = new BufferedReader(new InputStreamReader(is), 8192); //instead of: |
Note:
8192 (8k) is the size of the buffer in characters.
http://stackoverflow.com/questions/3498643/dalvik-message-default-buffer-size-used-in-bufferedinputstream-constructor-it