code: public int getIndex (String uri, String localName)
      {
      int max = length * 5;
      for (int i = 0; i < max; i += 5) {
          if (data[i].equals(uri) && data[i+1].equals(localName)) {
          return i / 5;
          }
      }
      return -1;
      }
docs: Look up an attribute's index by Namespace name.
  
  <p>In many cases, it will be more efficient to look up the name once and
  use the index query methods rather than using the name query methods
  repeatedly.</p>
  
  @param uri The attribute's Namespace URI, or the empty
  string if none is available.
  @param localName The attribute's local name.
  @return The attribute's index, or -1 if none matches.
  @see org.xml.sax.Attributes#getIndex(java.lang.String,java.lang.String)