/**
  * Peek next one byte.
  *
  * <p>Throws IOException() if reaches EOF. As long as logical response lines end with \r\n, we
  * shouldn't see EOF during parsing.
  */
 private int peek() throws IOException {
   final int next = mIn.peek();
   if (next == -1) {
     throw newEOSException();
   }
   return next;
 }
 /**
  * Read and return one byte from {@link #mIn}, and put it in {@link #mDiscourseLogger}.
  *
  * <p>Throws IOException() if reaches EOF. As long as logical response lines end with \r\n, we
  * shouldn't see EOF during parsing.
  */
 private int readByte() throws IOException {
   int next = mIn.read();
   if (next == -1) {
     throw newEOSException();
   }
   mDiscourseLogger.addReceivedByte(next);
   return next;
 }