new InputStreamReader(
ServerServices.class.getClassLoader().getResourceAsStream(path)));
int count = 0;
serverCsv.readLine();
String dataRow = serverCsv.readLine();
ServerInfo sInfo;
while (dataRow != null){
sInfo= new ServerInfo();
String[] dataArray = dataRow.split(",");
for (String item:dataArray) {
if (count == 0) sInfo.setWareHouseID(Integer.parseInt(item));
if (count == 1) sInfo.setManufacturer(item);
if (count == 2) sInfo.setModel(item);
if (count == 3) sInfo.setProcessor(item);
if (count == 4) sInfo.setMemory(item);
if (count == 5) sInfo.setPciBuses(Integer.parseInt(item));
if (count == 6) sInfo.setPciXBus(Integer.parseInt(item));
if (count == 7) sInfo.setPciExBus(Integer.parseInt(item));
++count;
}
count = 0;
sInfoList.add(sInfo);
dataRow = serverCsv.readLine(); // Read next line of data.