class HtmlQuoting {

  public static boolean needsQuoting(byte[] data, int off, int len) {
    for (int i = off; i < off + len; ++i) {
      switch (data[i]) {
      case '&':
      case '<':
      case '>':
      case '\'':
      case '"':
        return true;
      default:
        break;
      }
    }
    return false;
  }

  private  HtmlQuoting();

}