private void skipWord() throws IOException {
    int c;

    do {
      c = read(false);
    } while (c != ' ' && c != -1);

    if (c != -1) {
      unread(c);
    }
  }
Read until EOF or a space.
The input is discarded.
ql/src/java/org/apache/hadoop/hive/ql/log/syslog/SyslogParser.java