code: public String nextVASPToken(boolean newLine) throws IOException {
  
          String line;
  
          if (newLine) { // We ignore the end of the line and go to the following line
              if (inputBuffer.ready()) {
                  line = inputBuffer.readLine();
                  st = new StringTokenizer(line, " =\t");
              }
          }
  
          while (!st.hasMoreTokens() && inputBuffer.ready()) {
              line = inputBuffer.readLine();
              st = new StringTokenizer(line, " =\t");
          }
          if (st.hasMoreTokens()) {
              fieldVal = st.nextToken();
              if (fieldVal.startsWith("#")) {
                  nextVASPToken(true);
              }
          } else {
              fieldVal = null;
          }
          return this.fieldVal;
      }
docs: Find the next token of an VASP file.
  ABINIT tokens are words separated by space(s). Characters
  following a "#" are ignored till the end of the line.
  
  @return a <code>String</code> value
  @exception IOException if an error occurs