What is the sense of buffer size in the constructor?
BufferedReader(Reader in, int size)
As i have written the program:
imp
http://www.docjar.com/html/api/java/io/BufferedReader.java.html
As per this java documentation, default buffer size is 8192 characters capacity. Line size is considered as 80 chars capacity.
8192 buffer size is sufficient for smaller file sizes. But again this is growable. if file contains more than 8192 characters, then fill method of bufferedreader will increase the buffer size before reading content from file. For bigger content files preferably set your own max size to buffer while creating buffered reader through constructor, so that you can avoid recreating memory and copying the old array into newly created array.