- /**
- * Returns the first "id" value in gene identifier format from the JSON
- * response, or null if none found
- *
- * @param br
- * @return
- * @throws IOException
- */
- protected String parseSymbolResponse(BufferedReader br) throws IOException
- {
- JSONParser jp = new JSONParser();
- String result = null;
- try
- {
- JSONArray responses = (JSONArray) jp.parse(br);
- Iterator rvals = responses.iterator();
- while (rvals.hasNext())
- {
- JSONObject val = (JSONObject) rvals.next();
- String id = val.get(ID).toString();
- String type = val.get(TYPE).toString();
- if (id != null && GENE.equals(type))
- {
- result = id;
- break;
- }
- }
- } catch (ParseException e)
- {
- // ignore
- }
- return result;
- }
+ // /**
+ // * Returns the first "id" value in gene identifier format from the JSON
+ // * response, or null if none found
+ // *
+ // * @param br
+ // * @return
+ // * @throws IOException
+ // */
+ // @SuppressWarnings("unchecked")
+ // protected String parseSymbolResponse(BufferedReader br) throws IOException
+ // {
+ // }