public static boolean hasBoundary(String contentType){
  Map<String,String> map=new HashMap<>();
  HttpFields.valueParameters(contentType.toLowerCase(),map);
  return map.containsKey("boundary");
}

public static boolean hasBoundary ( String contentType ) { Map < String , String > map = new HashMap < > ( ) ; HttpFields . valueParameters ( contentType . toLowerCase ( ) , map ) ; return map . containsKey ( "boundary" ) ; }
checks whether the specified content type contains a boundary .
