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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? limitedinputstream.java

?? apache commons-fileupload-1.2.jar
?? JAVA
字號:
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.  See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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.apache.commons.fileupload.util;import java.io.FilterInputStream;import java.io.IOException;import java.io.InputStream;/** * An input stream, which limits its data size. This stream is * used, if the content length is unknown. */public abstract class LimitedInputStream        extends FilterInputStream implements Closeable {    /**     * The maximum size of an item, in bytes.     */    private long sizeMax;    /**     * The current number of bytes.     */    private long count;    /**     * Whether this stream is already closed.     */    private boolean closed;    /**     * Creates a new instance.     * @param pIn The input stream, which shall be limited.     * @param pSizeMax The limit; no more than this number of bytes     *   shall be returned by the source stream.     */    public LimitedInputStream(InputStream pIn, long pSizeMax) {        super(pIn);        sizeMax = pSizeMax;    }    /**     * Called to indicate, that the input streams limit has     * been exceeded.     * @param pSizeMax The input streams limit, in bytes.     * @param pCount The actual number of bytes.     * @throws IOException The called method is expected     *   to raise an IOException.     */    protected abstract void raiseError(long pSizeMax, long pCount)            throws IOException;    /** Called to check, whether the input streams     * limit is reached.     * @throws IOException The given limit is exceeded.     */    private void checkLimit() throws IOException {        if (count > sizeMax) {            raiseError(sizeMax, count);        }    }    /**     * Reads the next byte of data from this input stream. The value     * byte is returned as an <code>int</code> in the range     * <code>0</code> to <code>255</code>. If no byte is available     * because the end of the stream has been reached, the value     * <code>-1</code> is returned. This method blocks until input data     * is available, the end of the stream is detected, or an exception     * is thrown.     * <p>     * This method     * simply performs <code>in.read()</code> and returns the result.     *     * @return     the next byte of data, or <code>-1</code> if the end of the     *             stream is reached.     * @exception  IOException  if an I/O error occurs.     * @see        java.io.FilterInputStream#in     */    public int read() throws IOException {        int res = super.read();        if (res != -1) {            count++;            checkLimit();        }        return res;    }    /**     * Reads up to <code>len</code> bytes of data from this input stream     * into an array of bytes. If <code>len</code> is not zero, the method     * blocks until some input is available; otherwise, no     * bytes are read and <code>0</code> is returned.     * <p>     * This method simply performs <code>in.read(b, off, len)</code>     * and returns the result.     *     * @param      b     the buffer into which the data is read.     * @param      off   The start offset in the destination array     *                   <code>b</code>.     * @param      len   the maximum number of bytes read.     * @return     the total number of bytes read into the buffer, or     *             <code>-1</code> if there is no more data because the end of     *             the stream has been reached.     * @exception  NullPointerException If <code>b</code> is <code>null</code>.     * @exception  IndexOutOfBoundsException If <code>off</code> is negative,     * <code>len</code> is negative, or <code>len</code> is greater than     * <code>b.length - off</code>     * @exception  IOException  if an I/O error occurs.     * @see        java.io.FilterInputStream#in     */    public int read(byte[] b, int off, int len) throws IOException {        int res = super.read(b, off, len);        if (res > 0) {            count += res;            checkLimit();        }        return res;    }    /**     * Returns, whether this stream is already closed.     * @return True, if the stream is closed, otherwise false.     * @throws IOException An I/O error occurred.     */    public boolean isClosed() throws IOException {        return closed;    }    /**     * Closes this input stream and releases any system resources     * associated with the stream.     * This     * method simply performs <code>in.close()</code>.     *     * @exception  IOException  if an I/O error occurs.     * @see        java.io.FilterInputStream#in     */    public void close() throws IOException {        closed = true;        super.close();    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av中文字幕| 91久久精品一区二区二区| 亚洲天堂免费看| 欧美日韩国产片| 成人性生交大合| 蜜臀av一级做a爰片久久| 亚洲视频免费观看| 久久网站最新地址| 在线播放一区二区三区| 成人午夜大片免费观看| 蜜臀av性久久久久蜜臀av麻豆 | 欧美午夜在线一二页| 国内精品在线播放| 日韩高清不卡一区二区| 亚洲欧美日韩国产综合在线| 国产午夜亚洲精品理论片色戒 | 99国产精品99久久久久久| 美女网站色91| 亚洲国产日韩a在线播放| 国产日韩欧美激情| xf在线a精品一区二区视频网站| 欧美视频精品在线| 91亚洲国产成人精品一区二区三 | voyeur盗摄精品| 老司机精品视频在线| 亚洲制服丝袜在线| 中文字幕在线一区| 久久色中文字幕| 欧美精品一区二区三区高清aⅴ | 成人免费高清视频| 国产在线视频精品一区| 久色婷婷小香蕉久久| 午夜精品久久久久久久99樱桃| 国产精品久久久久一区| 国产精品天干天干在线综合| 久久久久久亚洲综合影院红桃| 久久综合狠狠综合久久综合88| 日韩欧美中文一区二区| 欧美成人一区二区三区在线观看| 777奇米四色成人影色区| 欧美日本免费一区二区三区| 欧美精品丝袜久久久中文字幕| 欧美日韩中文国产| 欧美日本一区二区| 日韩午夜激情av| 精品国产乱码久久久久久1区2区| 精品国产一区二区三区不卡| 日韩精品专区在线影院观看| 精品美女一区二区三区| 久久新电视剧免费观看| 中文欧美字幕免费| 最新中文字幕一区二区三区 | 精品国产123| 久久久久青草大香线综合精品| 国产日韩影视精品| 中文字幕在线播放不卡一区| 玉足女爽爽91| 午夜成人免费视频| 老司机精品视频在线| 懂色av一区二区夜夜嗨| 91麻豆精品秘密| 欧美精品一卡二卡| 久久婷婷色综合| 中文字幕日韩欧美一区二区三区| 亚洲激情成人在线| 视频一区在线播放| 国产69精品久久久久毛片 | 精品美女在线观看| 国产欧美日韩另类一区| 中文字幕亚洲电影| 日日摸夜夜添夜夜添国产精品| 另类人妖一区二区av| 成人免费毛片嘿嘿连载视频| 91麻豆国产在线观看| 日韩一级成人av| 日本一区二区电影| 午夜视频一区二区| 国产精品18久久久久久久网站| 99久久精品国产网站| 欧美日韩情趣电影| 久久久www免费人成精品| 亚洲免费毛片网站| 蜜桃视频在线观看一区| 99vv1com这只有精品| 欧美一区二区三区人| 国产精品伦一区| 日韩精品一二三区| 99久久er热在这里只有精品15| 777a∨成人精品桃花网| 国产精品麻豆网站| 蜜臀av性久久久久av蜜臀妖精| 99久久综合色| 日韩欧美色综合| 亚洲一区二区三区四区五区中文 | 精品国产一二三区| 亚洲免费视频成人| 国产麻豆精品在线| 欧美日韩免费不卡视频一区二区三区| 久久久久久久一区| 天天色综合天天| 99久久综合国产精品| 欧美大尺度电影在线| 亚洲v日本v欧美v久久精品| 成人小视频免费观看| 日韩欧美一级精品久久| 亚洲在线免费播放| 成人av网站在线观看免费| 日韩欧美一区在线| 亚洲成人在线网站| 一本一道久久a久久精品| 国产亚洲欧美一区在线观看| 日韩精品五月天| 欧美亚洲禁片免费| 亚洲欧美日韩中文字幕一区二区三区 | 欧洲精品一区二区三区在线观看| 国产网红主播福利一区二区| 日韩av一级电影| 欧美日韩在线直播| 一区二区在线电影| 91蜜桃网址入口| 中文一区在线播放| 国产成a人亚洲精| 精品国内片67194| 欧美aaaaaa午夜精品| 678五月天丁香亚洲综合网| 亚洲精品日韩专区silk| 91在线播放网址| 亚洲同性同志一二三专区| 国产.精品.日韩.另类.中文.在线.播放 | 日本精品视频一区二区三区| 国产精品激情偷乱一区二区∴| 国产精品性做久久久久久| 久久嫩草精品久久久精品一| 人人爽香蕉精品| 欧美精品欧美精品系列| 石原莉奈一区二区三区在线观看| 在线这里只有精品| 亚洲一区二区精品久久av| 欧美揉bbbbb揉bbbbb| 亚洲福利电影网| 欧美精品久久久久久久久老牛影院| 亚洲制服丝袜av| 在线电影院国产精品| 蜜臂av日日欢夜夜爽一区| 日韩三级视频在线观看| 久久精品二区亚洲w码| 精品少妇一区二区三区在线播放| 精品夜夜嗨av一区二区三区| 欧美精品一区二区久久久| 韩国成人福利片在线播放| 久久精品一区二区三区av| 成人自拍视频在线| 亚洲天堂成人在线观看| 欧美三级日韩三级| 麻豆精品一区二区三区| 久久久www成人免费无遮挡大片| 国产精品一品二品| 国产精品短视频| 欧美在线视频全部完| 日韩精品一二区| 久久精品视频一区二区三区| av毛片久久久久**hd| 亚洲视频一区二区在线| 欧美另类videos死尸| 久久99久久精品| 国产精品麻豆久久久| 在线观看成人免费视频| 久久精品国产在热久久| 国产亚洲午夜高清国产拍精品 | 精品一区二区三区在线观看国产| 国产欧美日韩不卡免费| 色综合一个色综合| 日韩精品国产精品| 久久香蕉国产线看观看99| 色猫猫国产区一区二在线视频| 亚洲高清免费观看高清完整版在线观看 | 91老师国产黑色丝袜在线| 亚洲一区二区精品3399| 精品黑人一区二区三区久久| 91视频在线观看免费| 麻豆国产91在线播放| 亚洲欧洲美洲综合色网| 91精品国产一区二区三区 | 日韩精品一区二区三区在线观看| 国产老肥熟一区二区三区| 亚洲一区二区av电影| 久久综合av免费| 欧美三日本三级三级在线播放| 国产精品一区一区三区| 亚洲妇熟xx妇色黄| 国产精品视频一二| 日韩三级在线观看| 在线视频综合导航| 成人午夜av影视| 九九**精品视频免费播放| 一区二区三区免费网站| 欧美韩国一区二区| 欧美一区二区三区四区在线观看| 99久久精品99国产精品| 一二三四社区欧美黄|