private int getContentLength ( Map < String , List < String > > headers ) { try { return Integer . parseInt ( headers . get ( "Content-Length" ) . get ( 0 ) ) ; } catch ( Exception e ) { return - 1 ; } }
Get the value of Content - Length header .