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

fguigues
22.37.2008 66158c723e127ef41a4a60566fb8f1f53c680e54
opendj-sdk/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