if (i == lm1)
if (i == em1)
  private int indexOfCRLF(byte[] b, int off, int len)    throws IOException  {    doReset = false;    int lm1 = len - 1;    for (int i = off; i < len; i++)      {        if (b[i] == CR)          {            int d;            if (i == lm1)              {                d = in.read();                doReset = true;              }            else                  {                d = b[i + 1];                  }            if (d == LF)              {                doReset = true;                return i;              }          }      }    return -1;  }