new InputStreamReader(
ServerServices.class.getClassLoader().getResourceAsStream(path)));
int count = 0;
laptopCsv.readLine();
String dataRow = laptopCsv.readLine();
LaptopInfo lInfo;
while (dataRow != null){
lInfo= new LaptopInfo();
String[] dataArray = dataRow.split(",");
for (String item:dataArray) {
if (count == 0) lInfo.setWareHouseID(Integer.parseInt(item));
if (count == 1) lInfo.setManufacturer(item);
if (count == 2) lInfo.setModel(item);
if (count == 3) lInfo.setProcessor(item);
if (count == 4) lInfo.setMemory(item);
if (count == 5) lInfo.setDiskPorts(Integer.parseInt(item));
++count;
}
count = 0;
lInfoList.add(lInfo);