code: private static List<String> extractInfo(String str) {
          int beg = 0;
          int end = 0;
          int len = str.length();
          List<String> parts = new ArrayList<>();
          while (end < len && !Character.isSpaceChar(str.charAt(end)))
              end++;
          parts.add(str.substring(beg,end));
          while (end < len && Character.isSpaceChar(str.charAt(end)))
              end++;
          beg = end;
          while (end < len && !Character.isSpaceChar(str.charAt(end)))
              end++;
          parts.add(str.substring(beg,end));
          return parts;
      }
docs: Extract the information from a line which contains HOSE_ID & energy.
  
  @param str  String with the information
  @return     List with String = HOSECode and String = energy