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

x33g5p2x  于2022-01-26 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(137)

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

PDU.decodeBER介绍

暂无

代码示例

代码示例来源:origin: org.snmp4j/snmp4j

/**
 * Decodes a <code>ScopedPDU</code> from an <code>InputStream</code>.
 *
 * @param inputStream an <code>InputStream</code> containing a BER encoded
 *   byte stream.
 * @throws IOException
 *   if there is a BER encoding error or other IO exception in the input stream.
 */
public void decodeBER(BERInputStream inputStream) throws IOException {
 MutableByte mutableByte = new MutableByte();
 int length = BER.decodeHeader(inputStream, mutableByte);
 long startPos = inputStream.getPosition();
 contextEngineID.decodeBER(inputStream);
 contextName.decodeBER(inputStream);
 super.decodeBER(inputStream);
 if (BER.isCheckSequenceLength()) {
  BER.checkSequenceLength(length,
              (int) (inputStream.getPosition() - startPos),
              this);
 }
}

代码示例来源:origin: org.kaazing/snmp4j

/**
 * Decodes a <code>ScopedPDU</code> from an <code>InputStream</code>.
 *
 * @param inputStream an <code>InputStream</code> containing a BER encoded
 *   byte stream.
 * @throws IOException
 */
public void decodeBER(BERInputStream inputStream) throws IOException {
 MutableByte mutableByte = new MutableByte();
 int length = BER.decodeHeader(inputStream, mutableByte);
 long startPos = inputStream.getPosition();
 contextEngineID.decodeBER(inputStream);
 contextName.decodeBER(inputStream);
 super.decodeBER(inputStream);
 if (BER.isCheckSequenceLength()) {
  BER.checkSequenceLength(length,
              (int) (inputStream.getPosition() - startPos),
              this);
 }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

/**
 * Decodes a <code>ScopedPDU</code> from an <code>InputStream</code>.
 *
 * @param inputStream an <code>InputStream</code> containing a BER encoded
 *   byte stream.
 * @throws IOException
 *   if there is a BER encoding error or other IO exception in the input stream.
 */
public void decodeBER(BERInputStream inputStream) throws IOException {
 MutableByte mutableByte = new MutableByte();
 int length = BER.decodeHeader(inputStream, mutableByte);
 long startPos = inputStream.getPosition();
 contextEngineID.decodeBER(inputStream);
 contextName.decodeBER(inputStream);
 super.decodeBER(inputStream);
 if (BER.isCheckSequenceLength()) {
  BER.checkSequenceLength(length,
              (int) (inputStream.getPosition() - startPos),
              this);
 }
}

代码示例来源:origin: com.rogueai/snmp2bean

v2cPDU.decodeBER(wholeMsg);

代码示例来源:origin: org.snmp4j/snmp4j

v1PDU.decodeBER(wholeMsg);

代码示例来源:origin: org.snmp4j/snmp4j

v2cPDU.decodeBER(wholeMsg);

代码示例来源:origin: org.kaazing/snmp4j

v2cPDU.decodeBER(wholeMsg);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

v2cPDU.decodeBER(wholeMsg);

代码示例来源:origin: org.kaazing/snmp4j

v1PDU.decodeBER(wholeMsg);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

v1PDU.decodeBER(wholeMsg);

相关文章