public int expect ( String pattern ) throws MalformedPatternException , Exception { logger . trace ( "Searching for '" + pattern + "' in the reader stream" ) ; return expect ( pattern , null ) ; }
Attempts to detect the provided pattern as an exact match .