boolean matchesOptionalSpacesFollowedBy ( String s ) throws JasperException { Mark mark = mark ( ) ; skipSpaces ( ) ; boolean result = matches ( s ) ; if ( ! result ) { reset ( mark ) ; } return result ; }
Looks ahead to see if there are optional spaces followed by the given String . If so true is returned and those spaces and characters are skipped . If not false is returned and the position is restored to where we were before .