private int peek() throws IOException {
    int c = read(true);

    unread(c);

    return c;
  }
Read the next byte, but then unread it again.
ql/src/java/org/apache/hadoop/hive/ql/log/syslog/SyslogParser.java