@SuppressWarnings("unchecked") private static List<Integer> parseRecodeColIDs(String spec,String[] colnames) throws IOException {
  if (spec == null)   throw new IOException("Missing transform specification.");
  List<Integer> specRecodeIDs=null;
  try {
    JSONObject jSpec=new JSONObject(spec);
    List<Integer> rcIDs=Arrays.asList(ArrayUtils.toObject(TfMetaUtils.parseJsonIDList(jSpec,colnames,TfUtils.TXMETHOD_RECODE)));
    List<Integer> dcIDs=Arrays.asList(ArrayUtils.toObject(TfMetaUtils.parseJsonIDList(jSpec,colnames,TfUtils.TXMETHOD_DUMMYCODE)));
    specRecodeIDs=new ArrayList<Integer>(CollectionUtils.union(rcIDs,dcIDs));
  }
 catch (  Exception ex) {
    throw new IOException(ex);
  }
  return specRecodeIDs;
}

@ SuppressWarnings ( "unchecked" ) private static List < Integer > parseRecodeColIDs ( String spec , String [ ] colnames ) throws IOException { if ( spec == null ) throw new IOException ( "Missing transform specification." ) ; List < Integer > specRecodeIDs = null ; try { JSONObject jSpec = new JSONObject ( spec ) ; List < Integer > rcIDs = Arrays . asList ( ArrayUtils . toObject ( TfMetaUtils . parseJsonIDList ( jSpec , colnames , TfUtils . TXMETHOD_RECODE ) ) ) ; List < Integer > dcIDs = Arrays . asList ( ArrayUtils . toObject ( TfMetaUtils . parseJsonIDList ( jSpec , colnames , TfUtils . TXMETHOD_DUMMYCODE ) ) ) ; specRecodeIDs = new ArrayList < Integer > ( CollectionUtils . union ( rcIDs , dcIDs ) ) ; } catch ( Exception ex ) { throw new IOException ( ex ) ; } return specRecodeIDs ; }
parses the given json specification and extracts a list of column ids that are subject to recoding .
