private static String getContentTypeMime ( final String httpContentType ) { String mime = null ; if ( httpContentType != null ) { final int i = httpContentType . indexOf ( ";" ) ; if ( i == - 1 ) { mime = httpContentType . trim ( ) ; } else { mime = httpContentType . substring ( 0 , i ) . trim ( ) ; } } return mime ; }
returns MIME type or NULL if httpContentType is NULL