public void dispatchGatheredElement(String elemName) throws Exception {
  SaxHandlerBase.ElementType dispelem=(SaxHandlerBase.ElementType)elementTypes.get(elemName);
  if (dispelem == null) {
    return;
  }
  boolean found=false;
  for (Iterator it=gatherBuffer.iterator(); it.hasNext(); ) {
    Object[] elem=(Object[])it.next();
    SaxHandlerBase.ElementType type=(SaxHandlerBase.ElementType)elem[0];
    if (type == null) {
      continue;
    }
    if (type == dispelem) {
      found=true;
    }
    if (found) {
      it.remove();
      if (elem[1] == null) {
        type.endElement();
        if (type == dispelem) {
          return;
        }
      }
 else       if (elem[1] instanceof String) {
        String charstring=(String)elem[1];
        char[] chars=charstring.toCharArray();
        type.characters(chars,0,chars.length);
      }
 else {
        Attributes atts=(Attributes)elem[1];
        type.startElement(atts);
      }
    }
  }
}

public void dispatchGatheredElement ( String elemName ) throws Exception { SaxHandlerBase . ElementType dispelem = ( SaxHandlerBase . ElementType ) elementTypes . get ( elemName ) ; if ( dispelem == null ) { return ; } boolean found = false ; for ( Iterator it = gatherBuffer . iterator ( ) ; it . hasNext ( ) ; ) { Object [ ] elem = ( Object [ ] ) it . next ( ) ; SaxHandlerBase . ElementType type = ( SaxHandlerBase . ElementType ) elem [ 0 ] ; if ( type == null ) { continue ; } if ( type == dispelem ) { found = true ; } if ( found ) { it . remove ( ) ; if ( elem [ 1 ] == null ) { type . endElement ( ) ; if ( type == dispelem ) { return ; } } else if ( elem [ 1 ] instanceof String ) { String charstring = ( String ) elem [ 1 ] ; char [ ] chars = charstring . toCharArray ( ) ; type . characters ( chars , 0 , chars . length ) ; } else { Attributes atts = ( Attributes ) elem [ 1 ] ; type . startElement ( atts ) ; } } } }
description of the method
