com.sun.jmx.snmp.internal.SnmpTools Java Examples

The following examples show how to use com.sun.jmx.snmp.internal.SnmpTools. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SnmpEngineId.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
static void validateId(String str) throws IllegalArgumentException {
    byte[] arr = SnmpTools.ascii2binary(str);
    validateId(arr);
}
 
Example #2
Source File: SnmpEngineId.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with a binary value. You can use <CODE> SnmpTools </CODE> to convert from hex string to binary format.
 * @param bin Binary value
 */
SnmpEngineId(byte[] bin) {
    engineId = bin;
    hexString = SnmpTools.binary2ascii(bin).toLowerCase();
}
 
Example #3
Source File: SnmpEngineId.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
static void validateId(String str) throws IllegalArgumentException {
    byte[] arr = SnmpTools.ascii2binary(str);
    validateId(arr);
}
 
Example #4
Source File: SnmpEngineId.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with an hex string value. Can handle engine Id format &lt;host&gt:&lt;port&gt.
 * @param hexString Hexa string.
 */
SnmpEngineId(String hexString) {
    engineId = SnmpTools.ascii2binary(hexString);
    this.hexString = hexString.toLowerCase();
}
 
Example #5
Source File: SnmpEngineId.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with a binary value. You can use <CODE> SnmpTools </CODE> to convert from hex string to binary format.
 * @param bin Binary value
 */
SnmpEngineId(byte[] bin) {
    engineId = bin;
    hexString = SnmpTools.binary2ascii(bin).toLowerCase();
}
 
Example #6
Source File: SnmpEngineId.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
static void validateId(String str) throws IllegalArgumentException {
    byte[] arr = SnmpTools.ascii2binary(str);
    validateId(arr);
}
 
Example #7
Source File: SnmpEngineId.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with an hex string value. Can handle engine Id format &lt;host&gt:&lt;port&gt.
 * @param hexString Hexa string.
 */
SnmpEngineId(String hexString) {
    engineId = SnmpTools.ascii2binary(hexString);
    this.hexString = hexString.toLowerCase();
}
 
Example #8
Source File: SnmpEngineId.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with a binary value. You can use <CODE> SnmpTools </CODE> to convert from hex string to binary format.
 * @param bin Binary value
 */
SnmpEngineId(byte[] bin) {
    engineId = bin;
    hexString = SnmpTools.binary2ascii(bin).toLowerCase();
}
 
Example #9
Source File: SnmpEngineId.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
static void validateId(String str) throws IllegalArgumentException {
    byte[] arr = SnmpTools.ascii2binary(str);
    validateId(arr);
}
 
Example #10
Source File: SnmpEngineId.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with an hex string value. Can handle engine Id format &lt;host&gt:&lt;port&gt.
 * @param hexString Hexa string.
 */
SnmpEngineId(String hexString) {
    engineId = SnmpTools.ascii2binary(hexString);
    this.hexString = hexString.toLowerCase();
}
 
Example #11
Source File: SnmpEngineId.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with a binary value. You can use <CODE> SnmpTools </CODE> to convert from hex string to binary format.
 * @param bin Binary value
 */
SnmpEngineId(byte[] bin) {
    engineId = bin;
    hexString = SnmpTools.binary2ascii(bin).toLowerCase();
}
 
Example #12
Source File: SnmpEngineId.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with an hex string value. Can handle engine Id format &lt;host&gt:&lt;port&gt.
 * @param hexString Hexa string.
 */
SnmpEngineId(String hexString) {
    engineId = SnmpTools.ascii2binary(hexString);
    this.hexString = hexString.toLowerCase();
}
 
Example #13
Source File: SnmpEngineId.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with an hex string value. Can handle engine Id format &lt;host&gt:&lt;port&gt.
 * @param hexString Hexa string.
 */
SnmpEngineId(String hexString) {
    engineId = SnmpTools.ascii2binary(hexString);
    this.hexString = hexString.toLowerCase();
}
 
Example #14
Source File: SnmpEngineId.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with a binary value. You can use <CODE> SnmpTools </CODE> to convert from hex string to binary format.
 * @param bin Binary value
 */
SnmpEngineId(byte[] bin) {
    engineId = bin;
    hexString = SnmpTools.binary2ascii(bin).toLowerCase();
}
 
Example #15
Source File: SnmpEngineId.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
static void validateId(String str) throws IllegalArgumentException {
    byte[] arr = SnmpTools.ascii2binary(str);
    validateId(arr);
}
 
Example #16
Source File: SnmpEngineId.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with an hex string value. Can handle engine Id format &lt;host&gt:&lt;port&gt.
 * @param hexString Hexa string.
 */
SnmpEngineId(String hexString) {
    engineId = SnmpTools.ascii2binary(hexString);
    this.hexString = hexString.toLowerCase();
}
 
Example #17
Source File: SnmpEngineId.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with a binary value. You can use <CODE> SnmpTools </CODE> to convert from hex string to binary format.
 * @param bin Binary value
 */
SnmpEngineId(byte[] bin) {
    engineId = bin;
    hexString = SnmpTools.binary2ascii(bin).toLowerCase();
}
 
Example #18
Source File: SnmpEngineId.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
static void validateId(String str) throws IllegalArgumentException {
    byte[] arr = SnmpTools.ascii2binary(str);
    validateId(arr);
}
 
Example #19
Source File: SnmpEngineId.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with an hex string value. Can handle engine Id format &lt;host&gt:&lt;port&gt.
 * @param hexString Hexa string.
 */
SnmpEngineId(String hexString) {
    engineId = SnmpTools.ascii2binary(hexString);
    this.hexString = hexString.toLowerCase();
}
 
Example #20
Source File: SnmpEngineId.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with a binary value. You can use <CODE> SnmpTools </CODE> to convert from hex string to binary format.
 * @param bin Binary value
 */
SnmpEngineId(byte[] bin) {
    engineId = bin;
    hexString = SnmpTools.binary2ascii(bin).toLowerCase();
}
 
Example #21
Source File: SnmpEngineId.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
static void validateId(String str) throws IllegalArgumentException {
    byte[] arr = SnmpTools.ascii2binary(str);
    validateId(arr);
}
 
Example #22
Source File: SnmpEngineId.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
static void validateId(String str) throws IllegalArgumentException {
    byte[] arr = SnmpTools.ascii2binary(str);
    validateId(arr);
}
 
Example #23
Source File: SnmpEngineId.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with a binary value. You can use <CODE> SnmpTools </CODE> to convert from hex string to binary format.
 * @param bin Binary value
 */
SnmpEngineId(byte[] bin) {
    engineId = bin;
    hexString = SnmpTools.binary2ascii(bin).toLowerCase();
}
 
Example #24
Source File: SnmpEngineId.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
static void validateId(String str) throws IllegalArgumentException {
    byte[] arr = SnmpTools.ascii2binary(str);
    validateId(arr);
}
 
Example #25
Source File: SnmpEngineId.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with an hex string value. Can handle engine Id format &lt;host&gt:&lt;port&gt.
 * @param hexString Hexa string.
 */
SnmpEngineId(String hexString) {
    engineId = SnmpTools.ascii2binary(hexString);
    this.hexString = hexString.toLowerCase();
}
 
Example #26
Source File: SnmpEngineId.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with a binary value. You can use <CODE> SnmpTools </CODE> to convert from hex string to binary format.
 * @param bin Binary value
 */
SnmpEngineId(byte[] bin) {
    engineId = bin;
    hexString = SnmpTools.binary2ascii(bin).toLowerCase();
}
 
Example #27
Source File: SnmpEngineId.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
static void validateId(String str) throws IllegalArgumentException {
    byte[] arr = SnmpTools.ascii2binary(str);
    validateId(arr);
}
 
Example #28
Source File: SnmpEngineId.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with an hex string value. Can handle engine Id format &lt;host&gt:&lt;port&gt.
 * @param hexString Hexa string.
 */
SnmpEngineId(String hexString) {
    engineId = SnmpTools.ascii2binary(hexString);
    this.hexString = hexString.toLowerCase();
}
 
Example #29
Source File: SnmpEngineId.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * New <CODE>SnmpEngineId</CODE> with a binary value. You can use <CODE> SnmpTools </CODE> to convert from hex string to binary format.
 * @param bin Binary value
 */
SnmpEngineId(byte[] bin) {
    engineId = bin;
    hexString = SnmpTools.binary2ascii(bin).toLowerCase();
}
 
Example #30
Source File: SnmpEngineId.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
static void validateId(String str) throws IllegalArgumentException {
    byte[] arr = SnmpTools.ascii2binary(str);
    validateId(arr);
}