new InputStreamReader(
ServerServices.class.getClassLoader().getResourceAsStream(path)));
int count = 0;
diskCsv.readLine();
String dataRow = diskCsv.readLine();
DiskInfo dInfo;
while (dataRow != null){
dInfo = new DiskInfo();
String[] dataArray = dataRow.split(",");
for (String item:dataArray) {
if (count == 0) dInfo.setWareHouseID(Integer.parseInt(item));
if (count == 1) dInfo.setManufacturer(item);
if (count == 2) dInfo.setModel(item);
if (count == 3) dInfo.setSize(item);
if (count == 4) dInfo.setPort(item);
++count;
}
count = 0;
dInfoList.add(dInfo);
dataRow = diskCsv.readLine(); // Read next line of data.