boolean matches(String string) throws JasperException {
  Mark mark=mark();
  int ch=0;
  int i=0;
  do {
    ch=nextChar();
    if (((char)ch) != string.charAt(i++)) {
      reset(mark);
      return false;
    }
  }
 while (i < string.length());
  return true;
}

boolean matches ( String string ) throws JasperException { Mark mark = mark ( ) ; int ch = 0 ; int i = 0 ; do { ch = nextChar ( ) ; if ( ( ( char ) ch ) != string . charAt ( i ++ ) ) { reset ( mark ) ; return false ; } } while ( i < string . length ( ) ) ; return true ; }
search the stream for a match to a string
