code: private static boolean isLineBased(final ByteBuf[] delimiters) {
          if (delimiters.length != 2) {
              return false;
          }
          ByteBuf a = delimiters[0];
          ByteBuf b = delimiters[1];
          if (a.capacity() < b.capacity()) {
              a = delimiters[1];
              b = delimiters[0];
          }
          return a.capacity() == 2 && b.capacity() == 1
                  && a.getByte(0) == '\r' && a.getByte(1) == '\n'
                  && b.getByte(0) == '\n';
      }
docs: Returns true if the delimiters are "\n" and "\r\n".