本文整理了Java中org.snmp4j.smi.OID.parseDottedString()
方法的一些代码示例,展示了OID.parseDottedString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OID.parseDottedString()
方法的具体详情如下:
包路径:org.snmp4j.smi.OID
类名称:OID
方法名:parseDottedString
暂无
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j
public void setValue(String value) {
this.value = parseDottedString(value);
}
代码示例来源:origin: org.kaazing/snmp4j
public void setValue(String value) {
this.value = parseDottedString(value);
}
代码示例来源:origin: org.snmp4j/snmp4j
public void setValue(String value) {
this.value = parseDottedString(value);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j
/**
* Constructs an {@code OID} from a dotted string. The string can contain
* embedded strings enclosed by a single quote (') that are converted to
* the corresponding OIO value. For example the following OID pairs are equal:
* <pre>
* OID a = new OID("1.3.6.2.1.5.'hallo'.1");
* OID b = new OID("1.3.6.2.1.5.104.97.108.108.111.1");
* assertEquals(a, b);
* a = new OID("1.3.6.2.1.5.'hal.lo'.1");
* b = new OID("1.3.6.2.1.5.104.97.108.46.108.111.1");
* assertEquals(a, b);
* a = new OID("1.3.6.2.1.5.'hal.'.'''.'lo'.1");
* b = new OID("1.3.6.2.1.5.104.97.108.46.39.108.111.1");
* </pre>
* @param oid
* a dotted OID String, for example "1.3.6.1.2.2.1.0"
*/
public OID(String oid) {
value = parseDottedString(oid);
}
代码示例来源:origin: org.snmp4j/snmp4j
/**
* Constructs an {@code OID} from a dotted string. The string can contain
* embedded strings enclosed by a single quote (') that are converted to
* the corresponding OIO value. For example the following OID pairs are equal:
* <pre>
* OID a = new OID("1.3.6.2.1.5.'hallo'.1");
* OID b = new OID("1.3.6.2.1.5.104.97.108.108.111.1");
* assertEquals(a, b);
* a = new OID("1.3.6.2.1.5.'hal.lo'.1");
* b = new OID("1.3.6.2.1.5.104.97.108.46.108.111.1");
* assertEquals(a, b);
* a = new OID("1.3.6.2.1.5.'hal.'.'''.'lo'.1");
* b = new OID("1.3.6.2.1.5.104.97.108.46.39.108.111.1");
* </pre>
*
* @param oid a dotted OID String, for example "1.3.6.1.2.2.1.0"
*/
public OID(String oid) {
value = parseDottedString(oid);
}
代码示例来源:origin: org.kaazing/snmp4j
/**
* Constructs an <code>OID</code> from a dotted string. The string can contain
* embedded strings enclosed by a single quote (') that are converted to
* the corresponding OIO value. For example the following OID pairs are equal:
* <pre>
* OID a = new OID("1.3.6.2.1.5.'hallo'.1");
* OID b = new OID("1.3.6.2.1.5.104.97.108.108.111.1");
* assertEquals(a, b);
* a = new OID("1.3.6.2.1.5.'hal.lo'.1");
* b = new OID("1.3.6.2.1.5.104.97.108.46.108.111.1");
* assertEquals(a, b);
* a = new OID("1.3.6.2.1.5.'hal.'.'''.'lo'.1");
* b = new OID("1.3.6.2.1.5.104.97.108.46.39.108.111.1");
* </pre>
* @param oid
* a dotted OID String, for example "1.3.6.1.2.2.1.0"
*/
public OID(String oid) {
value = parseDottedString(oid);
}
内容来源于网络,如有侵权,请联系作者删除!