code: protected boolean containsEOLDelimiters(byte[] data) {
          int numCRLFs = 0;
          for (int i = 0; i < data.length; i++) {
              if ('\r' == data[i] || '\n' == data[i]) {
                  numCRLFs++;
                  if (4 == numCRLFs) {
                      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                          Tr.debug(tc, "contains 4 consecutive CRs and/or LFs: true");
                      }
                      return true;
                  }
                  if ((i > 0) && ('\n' == data[i])) {
                      if ('\n' == data[i - 1]) {
                          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                              Tr.debug(tc, "contains LF-LF: true");
                          }
                          return true;
                      }
                  }
              } else {
                  // must be in a row, reset counter
                  numCRLFs = 0;
              }
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "containsEOLDelimiters: false count=" + numCRLFs);
          }
          return false;
      }
docs: Searches for \r\n\r\n (CR-LF-CR-LF),
  or \n\n (LF-LF) in a byte array.
  We dont care here about the order in which these 4
  control characters appear.
  
  @param data
  search byte array
  @return true if found; false if not found