public CharArray getAttributeValue(int index) {
   if (_eventType != XMLStreamConstants.START_ELEMENT) throw illegalState("Not a start element");
   return _attributes.getValue(index);
 }
 public boolean isAttributeSpecified(int index) {
   if (_eventType != XMLStreamConstants.START_ELEMENT)
     throw new IllegalStateException("Not a start element");
   return _attributes.getValue(index) != null;
 }
 public CharArray getAttributeValue(CharSequence uri, CharSequence localName) {
   if (_eventType != XMLStreamConstants.START_ELEMENT) throw illegalState("Not a start element");
   return (uri == null) ? _attributes.getValue(localName) : _attributes.getValue(uri, localName);
 }