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

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

?? byteinputbuffer.java

?? jpeg2000編解碼
?? JAVA
字號:
/* * CVS identifier: * * $Id: ByteInputBuffer.java,v 1.1.1.1 2002/07/22 09:26:49 grosbois Exp $ * * Class:                   ByteInputBuffer * * Description:             Provides buffering for byte based input, similar *                          to the standard class ByteArrayInputStream * *                          the old jj2000.j2k.io.ByteArrayInput class by *                          Diego SANTA CRUZ, Apr-26-1999 * * * COPYRIGHT: *  * This software module was originally developed by Rapha雔 Grosbois and * Diego Santa Cruz (Swiss Federal Institute of Technology-EPFL); Joel * Askel鰂 (Ericsson Radio Systems AB); and Bertrand Berthelot, David * Bouchard, F閘ix Henry, Gerard Mozelle and Patrice Onno (Canon Research * Centre France S.A) in the course of development of the JPEG2000 * standard as specified by ISO/IEC 15444 (JPEG 2000 Standard). This * software module is an implementation of a part of the JPEG 2000 * Standard. Swiss Federal Institute of Technology-EPFL, Ericsson Radio * Systems AB and Canon Research Centre France S.A (collectively JJ2000 * Partners) agree not to assert against ISO/IEC and users of the JPEG * 2000 Standard (Users) any of their rights under the copyright, not * including other intellectual property rights, for this software module * with respect to the usage by ISO/IEC and Users of this software module * or modifications thereof for use in hardware or software products * claiming conformance to the JPEG 2000 Standard. Those intending to use * this software module in hardware or software products are advised that * their use may infringe existing patents. The original developers of * this software module, JJ2000 Partners and ISO/IEC assume no liability * for use of this software module or modifications thereof. No license * or right to this software module is granted for non JPEG 2000 Standard * conforming products. JJ2000 Partners have full right to use this * software module for his/her own purpose, assign or donate this * software module to any third party and to inhibit third parties from * using this software module for non JPEG 2000 Standard conforming * products. This copyright notice must be included in all copies or * derivative works of this software module. *  * Copyright (c) 1999/2000 JJ2000 Partners. * */package jj2000.j2k.entropy.decoder;import java.io.*;/** * This class provides a byte input facility from byte buffers. It is similar * to the ByteArrayInputStream class, but adds the possibility to add data to * the stream after the creation of the object. * * <p>Unlike the ByteArrayInputStream this class is not thread safe (i.e. no * two threads can use the same object at the same time, but different objects * may be used in different threads).</p> * * <p>This class can modify the contents of the buffer given to the * constructor, when the addByteArray() method is called.</p> * * @see InputStream * */public class ByteInputBuffer {    /** The byte array containing the data */    private byte buf[];    /** The index one greater than the last valid character in the input     *  stream buffer */    private int count;    /** The index of the next character to read from the input stream buffer     * */    private int pos;    /**     * Creates a new byte array input stream that reads data from the     * specified byte array. The byte array is not copied.     *     * @param buf the input buffer.     * */    public ByteInputBuffer(byte buf[]){        this.buf = buf;        count = buf.length;    }    /**     * Creates a new byte array input stream that reads data from the     * specified byte array. Up to length characters are to be read from the     * byte array, starting at the indicated offset.     *     * <p>The byte array is not copied.</p>     *     * @param buf the input buffer.     *     * @param offset the offset in the buffer of the first byte to read.     *     * @param length the maximum number of bytes to read from the buffer.     * */    public ByteInputBuffer(byte buf[], int offset, int length) {        this.buf = buf;        pos = offset;        count = offset+length;    }    /**     * Sets the underlying buffer byte array to the given one, with the given     * offset and length. If 'buf' is null then the current byte buffer is     * assumed. If 'offset' is negative, then it will be assumed to be     * 'off+len', where 'off' and 'len' are the offset and length of the     * current byte buffer.     *     * <p>The byte array is not copied.</p>     *     * @param buf the input buffer. If null it is the current input buffer.     *     * @param offset the offset in the buffer of the first byte to read. If     * negative it is assumed to be the byte just after the end of the current     * input buffer, only permitted if 'buf' is null.     *     * @param length the maximum number of bytes to read frmo the buffer.     * */    public void setByteArray(byte buf[], int offset, int length) {        // In same buffer?        if (buf==null) {            if (length < 0 || count+length>this.buf.length) {                throw new IllegalArgumentException();            }            if (offset<0) {                pos = count;                count += length;            } else {                count = offset+length;                pos = offset;            }        } else { // New input buffer            if (offset<0 || length<0 || offset+length>buf.length) {                throw new IllegalArgumentException();            }            this.buf = buf;            count = offset+length;            pos = offset;        }    }    /**     * Adds the specified data to the end of the byte array stream. This     * method modifies the byte array buffer. It can also discard the already     * read input.     *     * @param data The data to add. The data is copied.     *     * @param off The index, in data, of the first element to add to the     * stream.     *     * @param len The number of elements to add to the array.     * */    public synchronized void addByteArray(byte data[], int off, int len) {        // Check integrity        if (len<0 || off<0 || len+off>buf.length) {            throw new IllegalArgumentException();        }        // Copy new data        if (count+len<=buf.length) { // Enough place in 'buf'            System.arraycopy(data,off,buf,count,len);            count += len;        } else {            if (count-pos+len <= buf.length) {                // Enough place in 'buf' if we move input data                // Move buffer                System.arraycopy(buf,pos,buf,0,count-pos);            } else { // Not enough place in 'buf', use new buffer                byte [] oldbuf = buf;                buf = new byte[count-pos+len];                // Copy buffer                System.arraycopy(oldbuf,count,buf,0,count-pos);            }            count -= pos;            pos = 0;            // Copy new data            System.arraycopy(data,off,buf,count,len);            count += len;        }    }    /**     * Reads the next byte of data from this input stream. The value byte is     * returned as an int in the range 0 to 255. If no byte is available     * because the end of the stream has been reached, the EOFException     * exception is thrown.     *     * <p>This method is not synchronized, so it is not thread safe.</p>     *     * @return The byte read in the range 0-255.     *     * @exception EOFException If the end of the stream is reached.     * */    public int readChecked() throws IOException {        if (pos<count) {            return (int)buf[pos++] & 0xFF;        } else {            throw new EOFException();        }    }    /**     * Reads the next byte of data from this input stream. The value byte is     * returned as an int in the range 0 to 255. If no byte is available     * because the end of the stream has been reached, -1 is returned.     *     * <p>This method is not synchronized, so it is not thread safe.</p>     *     * @return The byte read in the range 0-255, or -1 if the end of stream     * has been reached.     * */    public int read() {        if (pos<count) {            return (int)buf[pos++] & 0xFF;        } else {            return -1;        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99在线热播精品免费| 国内成+人亚洲+欧美+综合在线| 2020国产精品自拍| 欧美一二三区在线| 欧美体内she精视频| 9久草视频在线视频精品| 国产精品亚洲午夜一区二区三区| 久久99精品久久久久久久久久久久| 视频一区中文字幕| 偷拍一区二区三区四区| 亚洲在线中文字幕| 亚洲成av人片在线观看| 午夜私人影院久久久久| 日欧美一区二区| 精品一区二区免费在线观看| 精品在线一区二区| 国产aⅴ综合色| 99久久er热在这里只有精品15| 国产成人在线视频网站| 成人av网在线| 欧美中文字幕一区二区三区| 欧美三级三级三级爽爽爽| 91麻豆精品国产91久久久更新时间| 日韩视频在线一区二区| 久久久久久久国产精品影院| 国产精品久久久久一区二区三区共| 成人欧美一区二区三区黑人麻豆| 亚洲一区二区欧美日韩 | 美国三级日本三级久久99| 精品一区二区在线视频| 成人午夜视频在线| 欧洲激情一区二区| 精品国产第一区二区三区观看体验| 国产网红主播福利一区二区| 亚洲三级久久久| 日韩极品在线观看| 成人激情免费网站| 91精品中文字幕一区二区三区| 久久中文字幕电影| 亚洲午夜激情av| 国产一区二区三区观看| 在线国产电影不卡| 久久久蜜桃精品| 亚洲成人激情av| 国产不卡视频在线观看| 欧美精三区欧美精三区| 国产精品视频线看| 九一九一国产精品| 欧美性受xxxx黑人xyx性爽| 久久色中文字幕| 午夜视频一区在线观看| www.欧美精品一二区| 欧美一卡二卡在线| 亚洲国产精品天堂| 99re热这里只有精品视频| 欧美刺激午夜性久久久久久久| 综合色天天鬼久久鬼色| 国产精品一区二区x88av| 欧美一区二区三区免费在线看| 国产精品国产三级国产普通话三级| 蜜桃视频第一区免费观看| 欧美伊人久久大香线蕉综合69 | 久久女同互慰一区二区三区| 亚洲高清不卡在线观看| 国产成人精品综合在线观看| 欧美美女一区二区在线观看| 国产精品盗摄一区二区三区| 国产在线视频不卡二| 日韩欧美精品在线视频| 亚洲小少妇裸体bbw| 色悠悠亚洲一区二区| 中文字幕一区二区三区色视频| 国产伦精品一区二区三区在线观看 | 亚洲一卡二卡三卡四卡| 91美女精品福利| 国产欧美日韩综合精品一区二区| 激情综合网激情| 欧美v亚洲v综合ⅴ国产v| 久久精品国产精品亚洲红杏| 91精品国产麻豆| 麻豆精品一二三| 久久在线观看免费| 国产一区在线观看麻豆| 国产片一区二区| a在线播放不卡| 1024成人网| 色婷婷久久综合| 亚洲亚洲精品在线观看| 欧美色综合网站| 久久精品国产亚洲5555| 精品国产91乱码一区二区三区 | 精品国产免费人成电影在线观看四季| 调教+趴+乳夹+国产+精品| 欧美精品vⅰdeose4hd| 蜜臀精品一区二区三区在线观看| 欧美一区二区三区喷汁尤物| 韩国视频一区二区| 久久蜜桃av一区二区天堂| 成人夜色视频网站在线观看| 国产精品久久久久aaaa樱花 | 欧美日韩一区中文字幕| 麻豆精品在线视频| 日本一区二区动态图| 99久久综合狠狠综合久久| 亚洲一区免费观看| 日韩欧美国产午夜精品| 成人自拍视频在线| 亚洲成人黄色小说| 久久久精品tv| 欧美午夜电影在线播放| 韩国精品主播一区二区在线观看| 亚洲18色成人| 精品国产第一区二区三区观看体验| 成人综合在线网站| 五月婷婷综合激情| 国产精品污网站| 777色狠狠一区二区三区| 国产成人免费视频网站高清观看视频| 综合久久久久久久| 欧美va日韩va| 在线日韩一区二区| 国产一区999| 午夜电影一区二区| 中文字幕人成不卡一区| 日韩一区二区三区免费看| 99re成人精品视频| 国产一区二区网址| 午夜不卡在线视频| 亚洲日本成人在线观看| 精品国产乱码久久久久久浪潮| 91黄色免费观看| 成人禁用看黄a在线| 日产精品久久久久久久性色| 亚洲人成精品久久久久久| 精品免费视频一区二区| 欧美日韩高清一区二区不卡 | 成人综合婷婷国产精品久久| 日韩中文字幕不卡| 亚洲自拍都市欧美小说| 国产精品国产三级国产普通话三级| 91精品国产综合久久久久久久久久| 99在线精品免费| 成人精品一区二区三区中文字幕| 青青草一区二区三区| 香蕉av福利精品导航| 一区二区三区国产豹纹内裤在线| 日本一区二区视频在线观看| 中文字幕av一区二区三区免费看| 日韩三级在线免费观看| 7777精品伊人久久久大香线蕉超级流畅| 91视频在线看| 99麻豆久久久国产精品免费 | 中文字幕一区二区5566日韩| 久久久精品2019中文字幕之3| 欧美成人官网二区| 欧美成人精品二区三区99精品| 欧美日韩国产美女| 欧美肥胖老妇做爰| 欧美一二三区在线观看| 在线播放欧美女士性生活| 欧美日韩不卡在线| 欧美一区二区三区视频免费| 91精品国产乱| 欧美电影免费观看高清完整版在线 | 91免费精品国自产拍在线不卡| 成人黄色777网| 91啦中文在线观看| 欧美日韩综合在线| 欧美精品1区2区| 欧美一区二区三区四区在线观看 | 蜜臀久久久久久久| 精品一二三四区| 国产精一区二区三区| 国产东北露脸精品视频| 成人免费毛片嘿嘿连载视频| 不卡一区在线观看| 在线观看免费成人| 欧美精品在线观看一区二区| 日韩一区二区在线看片| 久久久久久毛片| 1区2区3区国产精品| 亚洲国产欧美日韩另类综合| 蜜臀精品一区二区三区在线观看| 极品瑜伽女神91| 成人午夜激情影院| 欧美色国产精品| 亚洲精品一区二区三区福利| 日韩一区欧美一区| 免费高清在线视频一区·| 高清国产一区二区| 欧美亚洲国产bt| 久久久久99精品国产片| 亚洲精品第1页| 久久av资源站| 色婷婷综合五月| 亚洲精品一区二区三区福利| 夜夜嗨av一区二区三区四季av| 蜜桃视频一区二区三区| 色伊人久久综合中文字幕| 精品国产百合女同互慰|