protected void consumeChar ( ImapRequestLineReader request , char expected ) throws ProtocolException { char consumed = request . consume ( ) ; if ( consumed != expected ) { throw new ProtocolException ( "Expected:'" + expected + "' found:'" + consumed + ' ' ) ; } }
Consumes the next character in the request checking that it matches the expected one . This method should be used when the