mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

fguigues
22.37.2008 6260dbbc1f04bcccf305d54e42a04197b1b988a2
opends/src/snmp/src/org/opends/server/snmp/SNMPMonitor.java
@@ -271,6 +271,21 @@
      });
  }
 /**
   * Wrapper for SNMP Byte[].
   * @param s value string
   * @return a Byte[]
   */
  public static Byte[] string2ByteArray(String s) {
    byte[] b = s.getBytes();
    Byte[] barray = new Byte[b.length];
    for (int index=0; index<b.length; index++) {
        barray[index] = new Byte(b[index]);
    }
    return barray;
  }
  /**
   * Wrapper for SNMP Counter32.
   * @param v value