@ Override public String getContentType ( ) { URLConnection connection = null ; try { connection = url . openConnection ( ) ; } catch ( IOException e ) { } if ( connection == null ) return DEFAULT_CONTENT_TYPE ; return connection . getContentType ( ) ; }
Returns the value of the URL content - type header field