private int skipSpaces() throws IOException {
    int c;

    while ((c = read(false)) == ' ') {
      continue;
    }

    if (c != -1) {
      unread(c);
    }
    return c;
  }
Read until a non-whitespace ASCII byte is seen.
ql/src/java/org/apache/hadoop/hive/ql/log/syslog/SyslogParser.java