code: public char nextWordChar() throws ProtocolException {
          char next = nextChar();
          while (next == ' ') {
              consume();
              next = nextChar();
          }
  
          if (next == '\r' || next == '\n') {
              throw new ProtocolException("Missing argument.");
          }
  
          return next;
      }
docs: Reads the next regular, non-space character in the current line. Spaces are skipped
  over, but end-of-line characters will cause a {@link ProtocolException} to be thrown.
  This method will continue to return
  the same character until the {@link #consume()} method is called.
  
  @return The next non-space character.
  @throws ProtocolException If the end-of-line or end-of-stream is reached.