本文整理了Java中org.snmp4j.smi.OID.decodeBER()
方法的一些代码示例,展示了OID.decodeBER()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OID.decodeBER()
方法的具体详情如下:
包路径:org.snmp4j.smi.OID
类名称:OID
方法名:decodeBER
暂无
代码示例来源:origin: org.kaazing/snmp4j
public final void decodeBER(BERInputStream inputStream) throws IOException {
BER.MutableByte type = new BER.MutableByte();
int length = BER.decodeHeader(inputStream, type);
long startPos = inputStream.getPosition();
if (type.getValue() != BER.SEQUENCE) {
throw new IOException("Invalid sequence encoding: " + type.getValue());
}
oid.decodeBER(inputStream);
variable = AbstractVariable.createFromBER(inputStream);
if (BER.isCheckSequenceLength()) {
BER.checkSequenceLength(length,
(int) (inputStream.getPosition() - startPos),
this);
}
}
代码示例来源:origin: org.snmp4j/snmp4j
public final void decodeBER(BERInputStream inputStream) throws IOException {
BER.MutableByte type = new BER.MutableByte();
int length = BER.decodeHeader(inputStream, type);
long startPos = inputStream.getPosition();
if (type.getValue() != BER.SEQUENCE) {
throw new IOException("Invalid sequence encoding: " + type.getValue());
}
oid.decodeBER(inputStream);
variable = AbstractVariable.createFromBER(inputStream);
if (BER.isCheckSequenceLength()) {
BER.checkSequenceLength(length,
(int) (inputStream.getPosition() - startPos),
this);
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j
public final void decodeBER(BERInputStream inputStream) throws IOException {
BER.MutableByte type = new BER.MutableByte();
int length = BER.decodeHeader(inputStream, type);
long startPos = inputStream.getPosition();
if (type.getValue() != BER.SEQUENCE) {
throw new IOException("Invalid sequence encoding: " + type.getValue());
}
oid.decodeBER(inputStream);
variable = AbstractVariable.createFromBER(inputStream);
if (BER.isCheckSequenceLength()) {
BER.checkSequenceLength(length,
(int) (inputStream.getPosition() - startPos),
this);
}
}
代码示例来源:origin: org.kaazing/snmp4j
enterprise.decodeBER(inputStream);
agentAddress.decodeBER(inputStream);
genericTrap.decodeBER(inputStream);
代码示例来源:origin: org.snmp4j/snmp4j
enterprise.decodeBER(inputStream);
agentAddress.decodeBER(inputStream);
genericTrap.decodeBER(inputStream);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j
enterprise.decodeBER(inputStream);
agentAddress.decodeBER(inputStream);
genericTrap.decodeBER(inputStream);
内容来源于网络,如有侵权,请联系作者删除!