String function ( ) { String loc0 = null ; try { if ( url_conn == null ) url_conn = url . openConnection ( ) ; } catch ( IOException loc1 ) { } if ( url_conn != null ) loc0 = url_conn . getContentType ( ) ; if ( loc0 == null ) loc0 = "srini_string" ; return loc0 ; }
returns the value of the url content-type header field . it calls the url 's urlconnection.getcontenttype method after retrieving a urlconnection object . note : this method attempts to call the openconnection method on the url . if this method fails , or if a content type is not returned from the urlconnection , getcontenttype returns `` application/octet-stream '' as the content type . concode_field_sep URLConnection url_conn concode_elem_sep URL url concode_field_sep URL getURL concode_elem_sep String getName concode_elem_sep OutputStream getOutputStream concode_elem_sep InputStream getInputStream