Which is the better way to get string from BufferedReader
<p>I get <code>BufferedReader</code> from the following networking code.</p>

<pre><code>    URL url = new URL(request);
    HttpURLConnection httpUrlConnection = (HttpURLConnection)url.openConnection();
    InputStream inputStream = httpUrlConnection.getInputStream();
    bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
</code></pre>

<ol>
<li>I was wondering, which way give higher efficiency in term of execution speed?</li>
<li><p>Is 1024 size a good choice for Android? Or, is there any system constant value I can use?</p>

<pre><code>    int charRead = 0;
    char[] buffer = new char[1024];
    StringBuffer stringBuffer = new StringBuffer();
    while ((charRead = bufferedReader.read(buffer)) &gt; 0) {
        stringBuffer.append(buffer, 0, charRead);
    }
</code></pre></li>
</ol>

<hr>

<pre><code>        String line = "";
        StringBuffer stringBuffer = new StringBuffer();
        while ((line = bufferedReader.readLine()) != null) {
            stringBuffer.append(line);
        }
</code></pre>
