Package test.model

Examples of test.model.DiskInfo


    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.
View Full Code Here

TOP

Related Classes of test.model.DiskInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.