Size of a char on Android
===

According to Java specification size of a [char](http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html) data type is 16 bits or two bytes.

So, i have written following code 

    private static final int BUFFER_SIZE=1024;
    char[] buffer=new char[BUFFER_SIZE];
    BufferedReader br= new BufferedReader(new InputStreamReader(conn.getInputStream()));

    while (true){
        byteFromStream=in.read(buffer);
        if (byteFromStream==-1) break;
        totalBytesLoaded=totalBytesLoaded+byteFromStream*2;
    }

But for some strange reason i am reading more bytes then its available on the stream. According to specification [read()](http://developer.android.com/reference/java/io/Reader.html#read%28char[],%20int,%20int%29) return numbers of character actually read by stream. 

Oh i am getting total stream size as

    bytesTotal=conn.getContentLength();

Which working pretty fine as i myself uploaded files on the server and i know their sizes.
 