code: private boolean isIEBrowser(byte[] agent) {
          int end = agent.length - 4;
          for (int i = 0; i < end;) {
              // check for MSIE
              if ('M' == agent[i]) {
                  if ('S' == agent[++i] && 'I' == agent[++i] && 'E' == agent[++i]) {
                      return true;
                  }
                  // i now points to the failing char, loop and see if it was another M
              } else {
                  i++;
              }
          }
          return false;
      }
docs: Check the user-agent input header to see if it contains the IE browser
  marker.
  
  @param agent
  @return boolean