public void eol ( ) throws ProtocolException { char next = nextChar ( ) ; // Ignore trailing spaces. while ( next == ' ' ) { consume ( ) ; next = nextChar ( ) ; } // handle DOS and unix end-of-lines if ( next == ' ' ) { consume ( ) ; next = nextChar ( ) ; } // Check if we found extra characters. if ( next != ' ' ) { throw new ProtocolException ( "Expected end-of-line, found more character(s): " + next ) ; } dumpLine ( ) ; }
Moves the request line reader to end of the line checking that no non - space character are found .