new InputStreamReader(
ServerServices.class.getClassLoader().getResourceAsStream(path)));
int count = 0;
storageCsv.readLine();
String dataRow = storageCsv.readLine();
StorageControllerInfo sCInfo;
while (dataRow != null){
sCInfo= new StorageControllerInfo();
String[] dataArray = dataRow.split(",");
for (String item:dataArray) {
if (count == 0) sCInfo.setWareHouseID(Integer.parseInt(item));
if (count == 1) sCInfo.setManufacturer(item);
if (count == 2) sCInfo.setModel(item);
if (count == 3) sCInfo.setBus(item);
if (count == 4) sCInfo.setDiskPortType(item);
if (count == 5) sCInfo.setDiskPorts(Integer.parseInt(item));
++count;
}
count = 0;
sCInfoList.add(sCInfo);
dataRow = storageCsv.readLine(); // Read next line of data.