public SnmpVarBind[] decodeVarBindList(BerDecoder bdec) throws BerException {
  bdec.openSequence();
  Vector<SnmpVarBind> tmp=new Vector<SnmpVarBind>();
  while (bdec.cannotCloseSequence()) {
    SnmpVarBind bind=new SnmpVarBind();
    bdec.openSequence();
    bind.oid=new SnmpOid(bdec.fetchOid());
    bind.setSnmpValue(decodeVarBindValue(bdec));
    bdec.closeSequence();
    tmp.addElement(bind);
  }
  bdec.closeSequence();
  SnmpVarBind[] varBindList=new SnmpVarBind[tmp.size()];
  tmp.copyInto(varBindList);
  return varBindList;
}

public SnmpVarBind [ ] decodeVarBindList ( BerDecoder bdec ) throws BerException { bdec . openSequence ( ) ; Vector < SnmpVarBind > tmp = new Vector < SnmpVarBind > ( ) ; while ( bdec . cannotCloseSequence ( ) ) { SnmpVarBind bind = new SnmpVarBind ( ) ; bdec . openSequence ( ) ; bind . oid = new SnmpOid ( bdec . fetchOid ( ) ) ; bind . setSnmpValue ( decodeVarBindValue ( bdec ) ) ; bdec . closeSequence ( ) ; tmp . addElement ( bind ) ; } bdec . closeSequence ( ) ; SnmpVarBind [ ] varBindList = new SnmpVarBind [ tmp . size ( ) ] ; tmp . copyInto ( varBindList ) ; return varBindList ; }
for snmp runtime private use only .
