code: private void setTorsion() throws Exception {
          List data = null;
          st.nextToken();
          String scode = st.nextToken(); // String scode
          String sid1 = st.nextToken();
          String sid2 = st.nextToken();
          String sid3 = st.nextToken();
          String sid4 = st.nextToken();
          String value1 = st.nextToken();
          String value2 = st.nextToken();
          String value3 = st.nextToken();
          String value4 = st.nextToken();
          String value5 = st.nextToken();
  
          try {
              double va1 = new Double(value1).doubleValue();
              double va2 = new Double(value2).doubleValue();
              double va3 = new Double(value3).doubleValue();
              double va4 = new Double(value4).doubleValue();
              double va5 = new Double(value5).doubleValue();
  
              key = "torsion" + scode + ";" + sid1 + ";" + sid2 + ";" + sid3 + ";" + sid4;
              LOG.debug("key = " + key);
              if (parameterSet.containsKey(key)) {
                  data = (Vector) parameterSet.get(key);
                  data.add(new Double(va1));
                  data.add(new Double(va2));
                  data.add(new Double(va3));
                  data.add(new Double(va4));
                  data.add(new Double(va5));
                  LOG.debug("data = " + data);
              } else {
                  data = new Vector();
                  data.add(new Double(va1));
                  data.add(new Double(va2));
                  data.add(new Double(va3));
                  data.add(new Double(va4));
                  data.add(new Double(va5));
                  LOG.debug("data = " + data);
              }
  
              parameterSet.put(key, data);
  
          } catch (NumberFormatException nfe) {
              throw new IOException("setTorsion: Malformed Number due to:" + nfe);
          }
      }
docs: Sets the torsion attribute stored into the parameter set
  
  @throws Exception Description of the Exception