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

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

?? byteinputbuffer.java

?? jpeg2000算法實現(xiàn)
?? JAVA
字號:
/* * CVS identifier: * * $Id: ByteInputBuffer.java,v 1.11 2000/09/05 09:23:05 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>This class can modify the contents of the buffer given to the * constructor, when the addByteArray() method is called. * * @see InputStream * */public class ByteInputBuffer {    /** The byte array containing the data */    byte buf[];    /** The index one greater than the last valid character in the input     *  stream buffer */    int count;    /** The index of the next character to read from the input stream buffer     * */    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.     *     * @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.     *     * @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.     *     * @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.     *     * @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一区二区三区免费野_久草精品视频
91麻豆精品国产91久久久资源速度 | 欧美一区二区三区日韩| 色婷婷国产精品综合在线观看| 大尺度一区二区| 国产a区久久久| 不卡影院免费观看| 99久久伊人网影院| 91丝袜高跟美女视频| 91天堂素人约啪| 日本精品裸体写真集在线观看| 91网站最新地址| 在线影院国内精品| 欧美日韩一区精品| 欧美天堂一区二区三区| 欧美日韩在线观看一区二区| 欧美日本一道本| 日韩一级黄色片| 欧美精品一区在线观看| 国产女主播一区| 亚洲女女做受ⅹxx高潮| 亚洲小说欧美激情另类| 人禽交欧美网站| 久久国产精品免费| 国产精品资源在线观看| 不卡的av在线播放| 欧美视频一区二| 日韩欧美中文一区二区| 国产亚洲一区二区三区在线观看| 中文字幕中文字幕中文字幕亚洲无线| 亚洲免费观看高清完整版在线 | 日本电影欧美片| 欧美日韩午夜精品| 欧美精品一区二区高清在线观看| 国产日本欧美一区二区| 亚洲自拍偷拍麻豆| 麻豆91免费观看| 99精品国产一区二区三区不卡| 欧美亚洲图片小说| 久久久综合九色合综国产精品| 亚洲人成网站影音先锋播放| 午夜久久久影院| 国产精品一区二区久久精品爱涩| 91免费观看国产| 欧美一级视频精品观看| 国产精品传媒在线| 日韩国产精品久久久久久亚洲| 国产精品羞羞答答xxdd| 欧美在线播放高清精品| 久久综合九色欧美综合狠狠 | 国产白丝网站精品污在线入口| 色婷婷久久久综合中文字幕 | 日本一区二区三区四区| 亚洲成人av资源| 国产精品一区三区| 欧美日韩不卡一区| 中文字幕国产精品一区二区| 亚洲成人1区2区| 成人国产亚洲欧美成人综合网| 欧美精品丝袜中出| 亚洲欧洲另类国产综合| 轻轻草成人在线| eeuss鲁一区二区三区| 欧美一区二区精品在线| 亚洲欧美另类在线| 国产黄色精品视频| 欧美大白屁股肥臀xxxxxx| 亚洲精品自拍动漫在线| 国产不卡视频在线播放| 欧美一级高清片| 亚洲久草在线视频| 岛国精品一区二区| 久久免费美女视频| 美女视频免费一区| 337p亚洲精品色噜噜噜| 一区二区三区四区在线免费观看 | av电影一区二区| 久久日韩粉嫩一区二区三区| 日韩综合小视频| 91久久香蕉国产日韩欧美9色| 中文欧美字幕免费| 国产精品一区专区| xfplay精品久久| 日本一区中文字幕| 88在线观看91蜜桃国自产| 一级中文字幕一区二区| 99久久夜色精品国产网站| 亚洲国产成人在线| 国产成人自拍网| 精品久久久久久最新网址| 日韩高清国产一区在线| 欧美巨大另类极品videosbest | 日韩视频在线观看一区二区| 亚洲国产日韩综合久久精品| 色综合久久99| 亚洲激情第一区| 日本高清不卡一区| 一区二区三区四区乱视频| 91欧美一区二区| 亚洲欧美成人一区二区三区| 91在线小视频| 亚洲男人电影天堂| 色综合久久久久久久久| 一区二区三区影院| 欧美日韩一级二级三级| 亚洲国产精品天堂| 欧美电影一区二区| 麻豆91免费观看| 久久午夜色播影院免费高清| 国产精品一区二区三区网站| 国产欧美精品一区二区三区四区| 国产一区 二区| 国产精品人人做人人爽人人添| 成人蜜臀av电影| 中文字幕一区av| 91麻豆国产自产在线观看| 亚洲人成影院在线观看| 欧美视频一区在线| 蜜桃视频第一区免费观看| 精品国产网站在线观看| 国产成人免费视| 亚洲男人的天堂av| 欧美老女人第四色| 蜜臀av亚洲一区中文字幕| 久久久电影一区二区三区| 99久久伊人精品| 亚洲成a人片在线观看中文| 日韩女优制服丝袜电影| 国产精品白丝jk黑袜喷水| 综合网在线视频| 欧美日韩一区二区三区视频| 蜜桃一区二区三区在线| 久久久精品tv| 色呦呦国产精品| 毛片av一区二区三区| 久久久亚洲高清| 在线亚洲免费视频| 九色综合国产一区二区三区| 国产精品久久久久一区| 欧美三区在线观看| 美女视频一区二区| 综合网在线视频| 日韩精品一区二区三区swag| www.亚洲色图| 日韩有码一区二区三区| 久久久精品国产免费观看同学| 色欧美88888久久久久久影院| 天堂成人免费av电影一区| 国产日韩欧美综合一区| 欧美亚洲国产一区二区三区| 韩国理伦片一区二区三区在线播放| 国产精品不卡视频| 日韩欧美中文一区| 色综合久久久久| 国内成人自拍视频| 亚洲综合在线视频| 国产午夜精品一区二区三区视频 | 国产91富婆露脸刺激对白| 亚洲蜜臀av乱码久久精品| 日韩西西人体444www| 99国产一区二区三精品乱码| 麻豆精品在线视频| 成人黄色片在线观看| 日韩不卡一二三区| 国产精品久久三区| 2021国产精品久久精品| 欧美日韩国产另类一区| 99久久777色| 国产精品一级片| 天天色图综合网| 亚洲欧美日韩久久精品| 久久综合久色欧美综合狠狠| 欧美日韩国产一级片| 成人激情免费电影网址| 久久99精品网久久| 亚洲va韩国va欧美va精品| 国产精品美女久久福利网站| 精品国产sm最大网站| 欧美人动与zoxxxx乱| 床上的激情91.| 国产精品66部| 激情欧美一区二区三区在线观看| 欧美一区二区三区在| 日本高清免费不卡视频| 国产高清在线精品| 久久精品免费看| 国产精品色在线观看| 精品久久久网站| 日韩无一区二区| 日韩一区二区在线免费观看| 欧美伦理电影网| 欧美日韩一区高清| 欧美三片在线视频观看| 色噜噜狠狠成人中文综合| www.色综合.com| 成人免费的视频| 国产成人av资源| 风间由美性色一区二区三区| 国产一区欧美一区| 国产精品小仙女| 国产精品一区不卡|