private boolean nextItemIs(String match) throws IOException {
  int c;
  while (isWhiteSpace(c=buf.get())) {
  }
  for (int i=0; i < match.length(); i++) {
    if (i > 0) {
      c=buf.get();
    }
    if (c != match.charAt(i)) {
      return false;
    }
  }
  return true;
}

private boolean nextItemIs ( String match ) throws IOException { int c ; while ( isWhiteSpace ( c = buf . get ( ) ) ) { } for ( int i = 0 ; i < match . length ( ) ; i ++ ) { if ( i > 0 ) { c = buf . get ( ) ; } if ( c != match . charAt ( i ) ) { return false ; } } return true ; }
requires the next few characters ( after whitespace ) to match the argument .
