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

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

?? buffer.java

?? linux下編程用 編譯軟件
?? JAVA
字號:
/* Buffer.java --    Copyright (C) 2002, 2003, 2004  Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.nio;import gnu.gcj.RawData;/** * @since 1.4 */public abstract class Buffer{  int cap = 0;  int limit = 0;  int pos = 0;  int mark = -1;  RawData address;  /**   * Creates a new Buffer.   *   * Should be package private.   */  Buffer (int capacity, int limit, int position, int mark)  {    if (capacity < 0)      throw new IllegalArgumentException ();        cap = capacity;    limit (limit);    position (position);        if (mark >= 0)    {      if (mark > pos)        throw new IllegalArgumentException ();            this.mark = mark;    }  }    /**   * Retrieves the capacity of the buffer.   *   * @return the capacity of the buffer   */  public final int capacity ()  {    return cap;  }  /**   * Clears the buffer.   *   * @return this buffer   */  public final Buffer clear ()  {    limit = cap;    pos = 0;    mark = -1;    return this;  }      /**   * Flips the buffer.   *   * @return this buffer   */  public final Buffer flip ()  {    limit = pos;    pos = 0;    mark = -1;    return this;  }      /**   * Tells whether the buffer has remaining data to read or not.   *   * @return true if the buffer contains remaining data to read,   * false otherwise   */  public final boolean hasRemaining ()  {    return remaining() > 0;  }  /**   * Tells whether this buffer is read only or not.   *   * @return true if the buffer is read only, false otherwise   */  public abstract boolean isReadOnly ();  /**   * Retrieves the current limit of the buffer.   *   * @return the limit of the buffer   */  public final int limit ()  {    return limit;  }  /**   * Sets this buffer's limit.   *    * @param newLimit The new limit value; must be non-negative and no larger   * than this buffer's capacity.   *   * @return this buffer   *   * @exception IllegalArgumentException If the preconditions on newLimit   * do not hold.   */  public final Buffer limit (int newLimit)  {    if ((newLimit < 0) || (newLimit > cap))      throw new IllegalArgumentException ();    if (newLimit < mark)        mark = -1;    if (pos > newLimit)        pos = newLimit;    limit = newLimit;    return this;  }  /**   * Sets this buffer's mark at its position.   *   * @return this buffer   */  public final Buffer mark ()  {    mark = pos;    return this;  }  /**   * Retrieves the current position of this buffer.   *   * @return the current position of this buffer   */  public final int position ()  {    return pos;  }      /**   * Sets this buffer's position. If the mark is defined and larger than the   * new position then it is discarded.   *    * @param newPosition The new position value; must be non-negative and no   * larger than the current limit.   *   * @return this buffer   *   * @exception IllegalArgumentException If the preconditions on newPosition   * do not hold   */  public final Buffer position (int newPosition)  {    if ((newPosition < 0) || (newPosition > limit))      throw new IllegalArgumentException ();    if (newPosition <= mark)        mark = -1;    pos = newPosition;    return this;  }  /**   * Returns the number of elements between the current position and the limit.   *   * @return the number of remaining elements   */  public final int remaining()  {    return limit - pos;  }  /**   * Resets this buffer's position to the previously-marked position.   *   * @return this buffer   *   * @exception InvalidMarkException If the mark has not been set.   */  public final Buffer reset()  {    if (mark == -1)      throw new InvalidMarkException ();    pos = mark;    return this;  }  /**   * Rewinds this buffer. The position is set to zero and the mark   * is discarded.   *   * @return this buffer   */  public final Buffer rewind()  {    pos = 0;    mark = -1;    return this;  }  /**   * Checks for underflow. This method is used internally to check   * whether a buffer has enough elements left to satisfy a read    * request.   *   * @exception BufferUnderflowException If there are no remaining   * elements in this buffer.   */  final void checkForUnderflow()  {    if (!hasRemaining())      throw new BufferUnderflowException();  }  /**   * Checks for underflow. This method is used internally to check   * whether a buffer has enough elements left to satisfy a read    * request for a given number of elements.   *   * @param length The length of a sequence of elements.   *   * @exception BufferUnderflowException If there are not enough    * remaining elements in this buffer.   */  final void checkForUnderflow(int length)  {    if (remaining() < length)      throw new BufferUnderflowException();  }  /**   * Checks for overflow. This method is used internally to check   * whether a buffer has enough space left to satisfy a write    * request.   *   * @exception BufferOverflowException If there is no remaining   * space in this buffer.   */  final void checkForOverflow()  {    if (!hasRemaining())      throw new BufferOverflowException();  }  /**   * Checks for overflow. This method is used internally to check   * whether a buffer has enough space left to satisfy a write    * request for a given number of elements.   *   * @param length The length of a sequence of elements.   *   * @exception BufferUnderflowException If there is not enough    * remaining space in this buffer.   */  final void checkForOverflow(int length)  {    if (remaining() < length)      throw new BufferOverflowException();  }  /**   * Checks if index is negative or not smaller than the buffer's    * limit. This method is used internally to check whether   * an indexed request can be fulfilled.   *   * @param index The requested position in the buffer.   *   * @exception IndexOutOfBoundsException If index is negative or not smaller   * than the buffer's limit.   */  final void checkIndex(int index)  {    if (index < 0        || index >= limit ())      throw new IndexOutOfBoundsException ();  }  /**   * Checks if buffer is read-only. This method is used internally to   * check if elements can be put into a buffer.   *   * @exception ReadOnlyBufferException If this buffer is read-only.   */  final void checkIfReadOnly()   {    if (isReadOnly())      throw new ReadOnlyBufferException ();  }  /**   * Checks whether an array is large enough to hold the given number of   * elements at the given offset. This method is used internally to   * check if an array is big enough.   *   * @param arraylength The length of the array.   * @param offset The offset within the array of the first byte to be read;   * must be non-negative and no larger than arraylength.   * @param length The number of bytes to be read from the given array;   * must be non-negative and no larger than arraylength - offset.   *   * @exception IndexOutOfBoundsException If the preconditions on the offset   * and length parameters do not hold   */  static final void checkArraySize(int arraylength, int offset, int length)  {    if ((offset < 0) ||        (length < 0) ||        (arraylength < length + offset))      throw new IndexOutOfBoundsException ();  }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产91富婆露脸刺激对白| 久久精品免费观看| 91香蕉视频在线| 亚洲精品视频免费观看| 91无套直看片红桃| 亚洲福中文字幕伊人影院| 欧美三级午夜理伦三级中视频| 一区二区三区毛片| 欧美人体做爰大胆视频| 美女精品一区二区| 久久综合九色综合97婷婷 | 亚洲欧美在线高清| 色综合色狠狠天天综合色| 亚洲一区二区黄色| 日韩欧美精品在线| 成人深夜视频在线观看| 亚洲天堂免费看| 在线播放中文字幕一区| 国产一区二区三区视频在线播放| 国产精品视频第一区| 欧美亚洲国产一区二区三区| 日本女优在线视频一区二区| 欧美激情综合在线| 欧美日韩精品二区第二页| 狠狠色丁香久久婷婷综合_中 | 久久夜色精品国产欧美乱极品| 国产福利一区二区三区视频| 亚洲自拍偷拍av| 久久夜色精品国产噜噜av| 一本色道久久综合亚洲aⅴ蜜桃 | 色婷婷综合久久久中文一区二区| 日韩精品久久久久久| 亚洲人成亚洲人成在线观看图片| 91精品国产入口| 成人高清伦理免费影院在线观看| 午夜久久久久久电影| 欧美激情一二三区| 日韩一区二区麻豆国产| 色综合天天综合狠狠| 男男视频亚洲欧美| 亚洲蜜臀av乱码久久精品| 婷婷成人激情在线网| 国产日韩三级在线| 欧美精品黑人性xxxx| caoporm超碰国产精品| 精品在线播放免费| 天堂成人国产精品一区| 国产精品电影院| www欧美成人18+| 欧美精品一级二级三级| 色哟哟精品一区| 国产成人无遮挡在线视频| 日韩和欧美一区二区| 亚洲天天做日日做天天谢日日欢| 久久久综合精品| 欧美一级夜夜爽| 欧美放荡的少妇| 欧美亚洲一区二区三区四区| 91影视在线播放| 波多野结衣亚洲| 国产一区免费电影| 美女视频网站黄色亚洲| 午夜精品久久久久久久99樱桃| 中文字幕欧美一| 亚洲国产精品精华液ab| 久久美女艺术照精彩视频福利播放 | 亚洲人成影院在线观看| 国产精品视频一二| 国产精品三级视频| 国产欧美日韩不卡| 精品国产凹凸成av人导航| 日韩欧美在线观看一区二区三区| 日本韩国欧美在线| 在线观看视频91| 欧美三日本三级三级在线播放| 色婷婷久久一区二区三区麻豆| www.日韩av| 成人黄色免费短视频| www.久久精品| 91麻豆精品在线观看| 一本色道综合亚洲| 欧美特级限制片免费在线观看| 色婷婷国产精品| 欧美色电影在线| 日韩区在线观看| 久久久.com| 国产精品久久午夜| 一区二区三区久久| 午夜电影网一区| 国产91清纯白嫩初高中在线观看 | 成人精品鲁一区一区二区| 国产成人精品免费| av电影在线观看完整版一区二区 | 欧美午夜精品久久久久久超碰| 日本二三区不卡| 51精品视频一区二区三区| 欧美人动与zoxxxx乱| 欧美变态tickle挠乳网站| 久久久一区二区三区捆绑**| 国产精品国产三级国产专播品爱网| 国产精品成人一区二区三区夜夜夜 | 91成人免费在线视频| 91精品国产综合久久久久久漫画| 日韩欧美一二三区| 中文字幕av一区 二区| 亚洲天堂精品视频| 偷拍自拍另类欧美| 国产99久久久精品| 欧美亚洲丝袜传媒另类| 日韩欧美一级精品久久| 国产精品私人影院| 亚洲成人久久影院| 国产一区二区三区免费观看| 99免费精品视频| 欧美高清视频www夜色资源网| 日韩女优av电影在线观看| 中文字幕一区二区在线观看| 亚洲国产欧美在线| 国产成人亚洲综合a∨猫咪| 在线看国产日韩| 久久久久99精品一区| 亚洲制服丝袜av| 国产 欧美在线| 欧美一级午夜免费电影| 亚洲欧美视频在线观看视频| 免费看精品久久片| 色婷婷综合久久| 久久精品视频在线看| 午夜成人免费视频| av在线这里只有精品| 精品国产一区二区在线观看| 亚洲精品福利视频网站| 黄色小说综合网站| 欧美日韩国产小视频在线观看| 日本一区二区三区久久久久久久久不| 一区二区三区四区高清精品免费观看| 久久成人免费网| 欧美欧美欧美欧美| 一区二区三区91| 国产成人午夜高潮毛片| 精品欧美一区二区在线观看| 一区二区三区中文字幕电影 | 亚洲女人****多毛耸耸8| 韩国av一区二区三区在线观看| 在线欧美日韩精品| 国产精品丝袜久久久久久app| 麻豆精品一区二区三区| 欧美日韩国产系列| 亚洲国产欧美在线| 在线一区二区三区四区五区 | 图片区小说区区亚洲影院| 99r国产精品| 中文字幕亚洲成人| 成人免费视频免费观看| 久久综合丝袜日本网| 久久超碰97中文字幕| 在线不卡中文字幕播放| 香蕉久久夜色精品国产使用方法 | 欧美视频三区在线播放| 中文字幕制服丝袜一区二区三区 | 一区二区三区不卡视频| 一本色道久久综合亚洲aⅴ蜜桃| 中文久久乱码一区二区| 懂色一区二区三区免费观看| 26uuu精品一区二区在线观看| 三级不卡在线观看| 91精品国产麻豆| 亚洲成人动漫av| 欧美视频一区二区三区在线观看 | 一区二区三区日本| 一本一道综合狠狠老| 亚洲精品老司机| 91黄视频在线| 日韩二区三区四区| 日韩一卡二卡三卡国产欧美| 麻豆精品一区二区三区| 久久久久久久久久久久久夜| 国产在线视频一区二区| 久久―日本道色综合久久| 成人性生交大片免费看视频在线| 久久精品在这里| 91在线观看美女| 亚洲宅男天堂在线观看无病毒| 欧美日韩午夜在线| 精品午夜久久福利影院| 久久久久久久电影| proumb性欧美在线观看| 一区二区三区四区中文字幕| 911国产精品| 国产一区二区网址| 国产精品国产三级国产普通话三级 | 视频一区二区中文字幕| 日韩美女主播在线视频一区二区三区| 精品一区二区三区香蕉蜜桃| 国产女同互慰高潮91漫画| 91在线观看一区二区| 午夜国产精品影院在线观看| 久久综合九色综合97婷婷| 99热精品国产| 日日夜夜精品视频免费|