org.snmp4j.smi.OID.decodeBER()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中org.snmp4j.smi.OID.decodeBER()方法的一些代码示例,展示了OID.decodeBER()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OID.decodeBER()方法的具体详情如下:
包路径:org.snmp4j.smi.OID
类名称:OID
方法名:decodeBER

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);

相关文章