本文整理了Java中org.snmp4j.PDU.decodeBER()
方法的一些代码示例,展示了PDU.decodeBER()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。PDU.decodeBER()
方法的具体详情如下:
包路径:org.snmp4j.PDU
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!