Get File Lenght from header Java Android
===

Please help me to solve my problem I have java code I tried many variants but didn't help 
Some hosting are closing file Content length (size of file )so please help me to read file size from header .
Here is the part of my streaming code when so I need to open the list and read  the int value am I right?  

    is = ucon.getInputStream();
    fileLength = ucon.getContentLength();
    List headersize = ucon.getHeaderFields().get("content-Lenght");



Please Help