/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.hapiserver; import java.util.Map; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; /** * * @author jbf */ public class CSVHapiRecordConverter { Map indexMap; JSONObject info; JSONArray params; int[] sizes; public CSVHapiRecordConverter( JSONObject info ) throws JSONException { this.info= info; this.params= info.getJSONArray("parameters"); this.sizes= new int[params.length()]; for ( int i=0; i