code: public final int getIndex(String uri, String localName)
      {
          int index;
  
          if (super.getLength() < MAX)
          {
              // if we haven't got too many attributes let the
              // super class look it up
              index = super.getIndex(uri,localName);
              return index;
          }
          // we have too many attributes and the super class is slow
          // so find it quickly using our Hashtable.
          // Form the key of format "{uri}localName"
          m_buff.setLength(0);
          m_buff.append('{').append(uri).append('}').append(localName);
          String key = m_buff.toString();
          Integer i = (Integer)m_indexFromQName.get(key);
          if (i == null)
              index = -1;
          else
              index = i.intValue();
          return index;
      }
docs: This method gets the index of an attribute given its uri and locanName.
  @param uri the URI of the attribute name.
  @param localName the local namer (after the ':' ) of the attribute name.
  @return the integer index of the attribute.
  @see org.xml.sax.Attributes#getIndex(String)