Get the total number of bytes loaded to the BufferReader before finish reading from it
<p>I'm reading a large xml file using HttpURLConnection in java as follows.</p>

<pre><code>StringBuilder responseBuilder = new StringBuilder(1024);
char[] buffer = new char[4096];

BufferedReader  br = new BufferedReader(new InputStreamReader(((InputStream)new DataInputStream(new GZIPInputStream(connection.getInputStream()))),"UTF-8"));

int n = 0;
while(n&gt;=0){
    n=br.read(buffer,0,buffer.length);
    if(n&gt;0) responseBuilder.append(buffer,0,n);

}
</code></pre>

<p>Is there any way to get the total number of bytes loaded to the BufferedReader before finish reading it char by char / line by line / char block by char block.</p>
