亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pdu.java

?? snmp4j
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
/*_############################################################################  _##  _##  SNMP4J - PDU.java  _##  _##  Copyright 2003-2005  Frank Fock and Jochen Katz (SNMP4J.org)  _##  _##  Licensed under the Apache License, Version 2.0 (the "License");  _##  you may not use this file except in compliance with the License.  _##  You may obtain a copy of the License at  _##  _##      http://www.apache.org/licenses/LICENSE-2.0  _##  _##  Unless required by applicable law or agreed to in writing, software  _##  distributed under the License is distributed on an "AS IS" BASIS,  _##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  _##  See the License for the specific language governing permissions and  _##  limitations under the License.  _##  _##########################################################################*/package org.snmp4j;import org.snmp4j.smi.*;import org.snmp4j.asn1.*;import java.io.IOException;import java.io.OutputStream;import java.util.Vector;import org.snmp4j.smi.Integer32;import org.snmp4j.mp.SnmpConstants;/** * The <code>PDU</code> class represents a SNMP protocol data unit. The PDU * version supported by the BER decoding and encoding methods of this class * is v2. * <p> * The default PDU type is GET. * * @author Frank Fock * @version 1.1 * @see PDUv1 * @see ScopedPDU */public class PDU implements BERSerializable {  /**   * Denotes a get PDU.   */  public static final int GET      = (BER.ASN_CONTEXT | BER.ASN_CONSTRUCTOR | 0x0);  /**   * Denotes a getnext (search) PDU.   */  public static final int GETNEXT  = (BER.ASN_CONTEXT | BER.ASN_CONSTRUCTOR | 0x1);  /**   * Denotes a response PDU.   */  public static final int RESPONSE = (BER.ASN_CONTEXT | BER.ASN_CONSTRUCTOR | 0x2);  /**   * Denotes a set PDU.   */  public static final int SET      = (BER.ASN_CONTEXT | BER.ASN_CONSTRUCTOR | 0x3);  /**   * Denotes a SNMPv1 trap PDU. This type can only be used with instances of the   * {@link PDUv1} class.   */  public static final int V1TRAP   = (BER.ASN_CONTEXT | BER.ASN_CONSTRUCTOR | 0x4);  /**   * Denotes a SNMPv2c/v3 getbulk PDU.   */  public static final int GETBULK  = (BER.ASN_CONTEXT | BER.ASN_CONSTRUCTOR | 0x5);  /**   * Denotes a SNMPv2c/v3 inform PDU (unprecisely also known as a confirmed   * notification).   */  public static final int INFORM   = (BER.ASN_CONTEXT | BER.ASN_CONSTRUCTOR | 0x6);  /**   * Denotes a SNMPv2c/v3 notification PDU (undistinguishable from   * {@link #TRAP}).   */  public static final int TRAP     = (BER.ASN_CONTEXT | BER.ASN_CONSTRUCTOR | 0x7);  /**   * Denotes a SNMPv2c/v3 notification PDU (undistinguishable from   * {@link #NOTIFICATION}).   */  public static final int NOTIFICATION = TRAP;  /**   * Denotes a SNMPv3 report PDU.   */  public static final int REPORT   = (BER.ASN_CONTEXT | BER.ASN_CONSTRUCTOR | 0x8);  // Error status constants  /**   * Operation success (no error).   */  public static final int noError = SnmpConstants.SNMP_ERROR_SUCCESS;  /**   * PDU encoding is too big for the transport used.   */  public static final int tooBig = SnmpConstants.SNMP_ERROR_TOO_BIG;  /**   * No such variable binding name, see error index.   */  public static final int noSuchName = SnmpConstants.SNMP_ERROR_NO_SUCH_NAME;  /**   * Bad value in variable binding, see error index.   */  public static final int badValue = SnmpConstants.SNMP_ERROR_BAD_VALUE;  /**   * The variable binding is read-only, see error index.   */  public static final int readOnly = SnmpConstants.SNMP_ERROR_READ_ONLY;  /**   * An unspecific error caused by a variable binding, see error index.   */  public static final int genErr = SnmpConstants.SNMP_ERROR_GENERAL_ERROR;  /**   * The variable binding is not accessible by the current MIB view, see error   * index.   */  public static final int noAccess = SnmpConstants.SNMP_ERROR_NO_ACCESS;  /**   * The variable binding's value has the wrong type, see error index.   */  public static final int wrongType = SnmpConstants.SNMP_ERROR_WRONG_TYPE;  /**   * The variable binding's value has the wrong length, see error index.   */  public static final int wrongLength = SnmpConstants.SNMP_ERROR_WRONG_LENGTH;  /**   * The variable binding's value has the wrong encoding, see error index.   */  public static final int wrongEncoding =      SnmpConstants.SNMP_ERROR_WRONG_ENCODING;  /**   * The specified object does not exists and cannot be created,   * see error index.   */  public static final int noCreation = SnmpConstants.SNMP_ERROR_NO_CREATION;  /**   * The variable binding's value is presently inconsistent with the current   * state of the target object, see error index.   */  public static final int inconsistentValue =      SnmpConstants.SNMP_ERROR_INCONSISTENT_VALUE;  /**   * The resource needed to assign a variable binding's value is presently   * unavailable, see error index.   */  public static final int resourceUnavailable =      SnmpConstants.SNMP_ERROR_RESOURCE_UNAVAILABLE;  /**   * Unable to commit a value, see error index.   */  public static final int commitFailed = SnmpConstants.SNMP_ERROR_COMMIT_FAILED;  /**   * Unable to undo a committed value, see error index.   */  public static final int undoFailed = SnmpConstants.SNMP_ERROR_UNDO_FAILED;  /**   * Unauthorized access, see error index.   */  public static final int authorizationError =      SnmpConstants.SNMP_ERROR_AUTHORIZATION_ERROR;  /**   * The variable's value cannot be modified, see error index.   */  public static final int notWritable = SnmpConstants.SNMP_ERROR_NOT_WRITEABLE;  /**   * The specified object does not exists and presently it cannot be created,   * see error index.   */  public static final int inconsistentName =      SnmpConstants.SNMP_ERROR_INCONSISTENT_NAME;  protected Vector variableBindings = new Vector();  protected Integer32 errorStatus = new Integer32();  protected Integer32 errorIndex = new Integer32();  protected Integer32 requestID = new Integer32();  protected int type = GET;  /**   * Default constructor.   */  public PDU() {  }  /**   * Copy constructor.   * @param other   *    the <code>PDU</code> to copy from.   */  public PDU(PDU other) {    variableBindings = (Vector) other.variableBindings.clone();    errorIndex = (Integer32) other.errorIndex.clone();    errorStatus = (Integer32) other.errorStatus.clone();    type = other.type;    requestID = (Integer32) other.requestID.clone();  }  /**   * Adds a variable binding to this PDU.   * @param vb   *   a <code>VariableBinding</code> instance.   */  public void add(VariableBinding vb) {    variableBindings.add(vb);  }  /**   * Adds an array of variable bindings to this PDU.   * @param vbs   *   an array of <code>VariableBinding</code> instances. The instances in the   *   array will be appended to the current list of variable bindings in the   *   PDU.   */  public void addAll(VariableBinding[] vbs) {    variableBindings.ensureCapacity(variableBindings.size()+vbs.length);    for (int i=0; i<vbs.length; i++) {      variableBindings.add(vbs[i]);    }  }  /**   * Gets the variable binding at the specified position.   * @param index   *    a zero based positive integer (<code>0 <= index < {@link #size()}</code>)   * @return   *    a VariableBinding instance. If <code>index</code> is out of bounds   *    an exception is thrown.   */  public VariableBinding get(int index) {    return (VariableBinding)variableBindings.get(index);  }  /**   * Sets the variable binding at the specified position.   * @param index   *    a zero based positive integer (<code>0 <= index < {@link #size()}</code>)   *    If <code>index</code> is out of bounds   *    an exception is thrown.   * @param vb   *    a VariableBinding instance (<code>null</code> is not allowed).   * @return   *    the variable binding that has been replaced.   */  public VariableBinding set(int index, VariableBinding vb) {    if (vb == null) {      throw new NullPointerException("Variable binding must not be null");    }    return (VariableBinding)variableBindings.set(index, vb);  }  /**   * Removes the variable binding at the supplied position.   * @param index   *    a position >= 0 and < {@link #size()}.   */  public void remove(int index) {    variableBindings.remove(index);  }  /**   * Gets the number of variable bindings in the PDU.   * @return   *    the size of the PDU.   */  public int size() {    return variableBindings.size();  }  /**   * Gets the variable binding vector.   * @return   *    the internal <code>Vector</code> containing the PDU's variable bindings.   */  public Vector getVariableBindings() {    return variableBindings;  }  /**   * Remove the last variable binding from the PDU, if such an element exists.   */  public void trim() {    if (variableBindings.size() > 0) {      variableBindings.removeElementAt(variableBindings.size() - 1);    }  }  /**   * Sets the error status of the PDU.   * @param errorStatus   *    a SNMP error status.   * @see SnmpConstants   */  public void setErrorStatus(int errorStatus) {    this.errorStatus.setValue(errorStatus);  }  /**   * Gets the error status of the PDU.   * @return   *    a SNMP error status.   * @see SnmpConstants   */  public int getErrorStatus() {    return errorStatus.getValue();  }  /**   * Gets a textual description of the error status.   * @return   *    a String containing an element of the   *    {@link SnmpConstants#SNMP_ERROR_MESSAGES} array for a valid error status.   *    "Unknown error: <errorStatusNumber>" is returned for any other value.   */  public String getErrorStatusText() {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色丁香久综合在线久综合在线观看| 久久99精品久久久久久久久久久久 | 久久综合国产精品| 久久成人免费电影| 久久久一区二区三区| 国产成人综合在线播放| 国产婷婷色一区二区三区四区| 成人午夜免费av| 亚洲精品国产视频| 欧美日韩国产色站一区二区三区| 亚洲成a人片综合在线| 日韩欧美国产wwwww| 国产成人免费网站| 一区二区三区欧美日| 欧美日本在线看| 国产在线精品一区二区夜色| 国产亚洲视频系列| 色婷婷精品久久二区二区蜜臀av| 亚洲第一主播视频| 欧美成人精品3d动漫h| 成人一区二区三区在线观看 | 亚洲国产欧美一区二区三区丁香婷| 69成人精品免费视频| 国模大尺度一区二区三区| 亚洲色欲色欲www| 日韩色在线观看| 福利一区二区在线观看| 一区二区三区波多野结衣在线观看| 日韩欧美一区二区在线视频| 成人99免费视频| 奇米精品一区二区三区在线观看一 | 国产精品久久久久一区| 欧美剧情电影在线观看完整版免费励志电影 | 亚洲午夜在线视频| 精品久久国产97色综合| 欧美亚洲动漫另类| 国产91精品一区二区麻豆网站| 亚洲综合男人的天堂| 久久久精品tv| 91精品国产欧美日韩| av一区二区三区黑人| 久久99在线观看| 亚洲国产日韩综合久久精品| 久久久美女毛片| 91精品视频网| 在线亚洲一区二区| 成人av在线播放网址| 麻豆精品新av中文字幕| 午夜在线电影亚洲一区| 国产精品免费久久| 欧美精品一区二区久久婷婷| 欧美性极品少妇| 不卡视频免费播放| 国产精品99久久久久久宅男| 免费不卡在线视频| 亚洲第四色夜色| 一区二区三区蜜桃网| 国产精品久久久久久久久免费樱桃| 欧美videossexotv100| 在线播放91灌醉迷j高跟美女| 91黄色激情网站| av在线一区二区| 不卡的看片网站| 成人午夜免费视频| 成人免费毛片嘿嘿连载视频| 国产一区不卡精品| 国产一区二区导航在线播放| 蜜桃av噜噜一区二区三区小说| 亚洲国产精品久久人人爱蜜臀| 亚洲色图第一区| 亚洲精品乱码久久久久久| 中文字幕一区二区日韩精品绯色| 国产欧美视频一区二区三区| 久久亚洲一级片| 国产亚洲精久久久久久| 久久久久青草大香线综合精品| 精品处破学生在线二十三| 精品三级av在线| 久久香蕉国产线看观看99| 精品久久国产老人久久综合| 精品国产伦一区二区三区免费| 欧美大片国产精品| 欧美不卡一区二区| 精品久久久久av影院| 精品国产一区二区三区久久影院| 精品电影一区二区| 久久久影视传媒| 国产精品初高中害羞小美女文| 亚洲丝袜美腿综合| 亚洲aⅴ怡春院| 另类中文字幕网| 福利电影一区二区| 99久久久久久| 欧美精品自拍偷拍动漫精品| 欧美大胆一级视频| 国产视频一区二区在线| 中文字幕一区在线| 亚洲午夜视频在线| 看国产成人h片视频| 国产精品1区二区.| 91蝌蚪porny| 7777精品伊人久久久大香线蕉超级流畅 | 麻豆成人久久精品二区三区红| 久久精品国产精品亚洲红杏| 成人激情免费视频| 欧美三区在线观看| 欧美大度的电影原声| 国产精品久久毛片a| 亚洲午夜羞羞片| 国产一区91精品张津瑜| 色综合色狠狠天天综合色| 91精品久久久久久蜜臀| 日本一区二区三区免费乱视频| 亚洲一线二线三线视频| 精品在线播放免费| 91免费观看视频在线| 日韩欧美国产电影| 亚洲靠逼com| 国内精品第一页| 欧美性极品少妇| 欧美激情自拍偷拍| 日本视频在线一区| 99re66热这里只有精品3直播| 91精品国产高清一区二区三区 | 在线播放日韩导航| 国产精品久久久久天堂| 日本aⅴ亚洲精品中文乱码| 成人国产免费视频| 日韩视频一区二区| 一区二区三区四区乱视频| 国产精品综合二区| 5566中文字幕一区二区电影| 中文字幕一区二区在线观看| 另类小说综合欧美亚洲| 在线精品视频一区二区| 国产清纯美女被跳蛋高潮一区二区久久w | 欧美日韩不卡在线| 亚洲视频一区在线观看| 国产麻豆精品一区二区| 9191成人精品久久| 亚洲精品老司机| 成人av动漫网站| 国产香蕉久久精品综合网| 亚洲mv大片欧洲mv大片精品| 99v久久综合狠狠综合久久| 国产亚洲欧美中文| 激情综合色综合久久| 欧美一级在线观看| 亚洲一区电影777| 色乱码一区二区三区88| 亚洲欧洲日产国码二区| 国产精品一区二区在线看| 日韩欧美国产三级| 天堂在线一区二区| 欧美色手机在线观看| 一区二区三区免费| 日本韩国精品在线| 亚洲精品视频在线看| 成人激情av网| 中文字幕一区二区三区不卡在线| 国产成人免费av在线| 国产欧美日韩卡一| 国产成人久久精品77777最新版本| 精品日韩在线一区| 国产在线精品一区二区夜色| 精品免费国产二区三区| 狠狠色综合色综合网络| 久久―日本道色综合久久| 国产一区中文字幕| 久久久久久亚洲综合影院红桃| 国产一区二区伦理片| 久久久久久久久久看片| 国产精品1024| 欧美国产丝袜视频| 94-欧美-setu| 亚洲第一成人在线| 91麻豆精品91久久久久久清纯 | 亚洲国产美国国产综合一区二区| 91福利视频在线| 婷婷夜色潮精品综合在线| 欧美欧美午夜aⅴ在线观看| 日本亚洲一区二区| 欧美一级专区免费大片| 国产精品77777竹菊影视小说| 久久久久国色av免费看影院| 成人av综合一区| 一卡二卡欧美日韩| 日韩欧美亚洲另类制服综合在线| 国产在线精品一区二区夜色 | 精品sm在线观看| 豆国产96在线|亚洲| 亚洲欧美激情小说另类| 在线观看视频一区二区欧美日韩| 日本视频在线一区| 国产女主播在线一区二区| 色综合久久中文综合久久97| 婷婷亚洲久悠悠色悠在线播放| 久久久噜噜噜久久中文字幕色伊伊| av福利精品导航| 午夜精品福利在线|