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

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

?? recodequeue.java

?? 這是有關于一個視頻自動壓縮系統的java+xml構建的代碼
?? JAVA
字號:
package autoencodeinfinit.QueueProcess;import java.util.Collection;import java.util.Iterator;import autoencodeinfinit.XMLProcess.XMLProcess;import org.w3c.dom.Element;import org.w3c.dom.Node;/** * create a queue with its basically functions and provide parameter change function from the data of  * XML * @author ulysess */public class ReCodeQueue extends java.util.AbstractQueue {    private QueueEntity first = null , last = null , temp = null;    private int maxlength = 30 , length = 0;    private String statusxml = null;        /**     * Add queue entity toadd into the queue by use the method offer() , if offer()     * return true then return true otherwise throw the IllegalStateException.     * this method is add according the defination of the class java.util.AbstractQueue     * recommend use the offer method to add entity       * @param toadd : the QueueEntity to be added to the last of the queue     * @return only return true while offer method return true     */    public boolean add(QueueEntity toadd) {        if ( this.offer(toadd) ) {            return true;        }         else {            throw new java.lang.IllegalStateException("Can't add Queue Entity into the queue") ;        }    }        /**     * Add queue entity to the last of the queue if possible     * @param e : the QueueEntity to be added to the last of the queue      * @return only when the queue is full or toadd is null this method will return false     */    public boolean offer(Object e) {        if(e instanceof QueueEntity) {            QueueEntity toadd =(QueueEntity) e;            if (first == null && toadd != null) {                first = toadd;                last = toadd;                this.length += 1;                this.fresh();                return true;            } else if (this.length < this.maxlength && toadd != null ){                last.setNext(toadd);                last = toadd;                this.length += 1;                this.fresh();                return true;            } else {                return false;            }        }        else {            throw new java.lang.IllegalStateException("Insert a object which is't instanceof QueueEntity");        }                    }    /**     * return the first entity of the queue and remove it from the queue , if the queue is empty throw a exception     * @return     */    public QueueEntity remove() {        if (this.first != null) {            this.temp  = this.first;            this.first = this.first.getNext();            this.length -=1;            this.fresh();            return temp;        }        else {            throw new java.lang.IllegalStateException("Can remove entity from empty queue");        }    }    /**     * Return the first entity of the queue and remove if from the queue ,if the queue is empty return null;     * @return the first entity of the queue,if queue is empty return null     */    public QueueEntity poll() {        if (this.first != null) {            this.temp  = this.first;            this.first = this.first.getNext();            this.length -= 1;            this.fresh();            return temp;        }        else {            return null;        }    }    /**     * return the first entity of the queue,if the queue is empty ,throw a exception     * @return     */    public QueueEntity element() {        if (this.first != null) {            return this.first;        }        else {            throw new java.lang.IllegalStateException("The queue is empty");        }    }    /**     * return the first entity of the queue.     * @return     */    public QueueEntity peek() {        return this.first;    }    /**     * move the queue entity in the index number orginal to the index number object     * @param orginal     * @param object     * @return     */    public boolean jumpQueue(int orginal , int object){        if( orginal > this.length || object > this.length || orginal*object < 0) {            return false;        }        QueueEntity temp1 = this.first , temp2 = first , temp3 = null;        int count = 1;        for(; count == orginal - 2  ; count++ ) {            temp1 = temp1.getNext();        }                for(count = 0 ; count == object - 2 ; count++){            temp2 = temp2.getNext();        }        temp3=temp1;        temp1.setNext(temp1.getNext().getNext());        temp3.getNext().setNext(temp2.getNext());        temp2.setNext(temp3.getNext());        return true;    }        /**     * return the length of the queue      * @return     */    public int size() {        return this.length;    }    /**     * check if the queue is empty     * @return     */    public boolean isEmpty() {        return (this.first == null);    }    /**     * check if this queue inclue the entity qe      * @param qe     * @return     */    public boolean contains(QueueEntity qe) {        for(QueueEntity temp = first ; temp != null ; temp=temp.getNext()){            if (qe.getIdentity() == temp.getIdentity() ) {                return true;            }        }        return false;    }    /**     * not implemented yet;     * @return     */    public Iterator iterator() {        throw new UnsupportedOperationException("Not supported yet.");    }     /**     * not implemented yet;     * @return     */    public Object[] toArray() {        throw new UnsupportedOperationException("Not supported yet.");    }    /**     * not implemented yet;     * @return     */        public Object[] toArray(Object[] a) {        throw new UnsupportedOperationException("Not supported yet.");    }    /**     * remove the specific index queue entity     * @param index : the index number of the queue     * @return     */    public boolean remove(int index) {        int count =1;        QueueEntity obj = this.first;        if (index > this.length || index > this.maxlength ) {            return false;        }        for( ; count == index - 1 ; count++) {            obj = obj.getNext();        }                obj.setNext(obj.getNext().getNext());        this.fresh();        return true;                    }    /**     * not implemented yet;     * @return     */     public boolean containsAll(Collection c) {        throw new UnsupportedOperationException("Not supported yet.");    }    /**     * not implemented yet;     * @return     */     public boolean addAll(Collection c) {        throw new UnsupportedOperationException("Not supported yet.");    }    /**     * not implemented yet;     * @return     */     public boolean removeAll(Collection c) {        throw new UnsupportedOperationException("Not supported yet.");    }    /**     * not implemented yet;     * @return     */     public boolean retainAll(Collection c) {        throw new UnsupportedOperationException("Not supported yet.");    }    /**     * set empty of this queue     */    public void clear() {        this.first=this.last=null;    }        /**     * fresh the queue information in the xml document     */    public void fresh() {            }        public void writeQueueStatus(String add) {        XMLProcess statxmlprocess = null;        if(add != null && this.statusxml != null) {            statxmlprocess = XMLProcess.CreateXMLFile(add);        } else {            statxmlprocess = new XMLProcess(add);        }                            }        public void writeQueueStatus() {        this.writeQueueStatus(this.statusxml);    }            private void createStatus(XMLProcess xmlnode) {        QueueEntity iter = this.first;        for (int i = 0; i < this.length ; i++) {            Element insert = xmlnode.insertNodeIn(xmlnode.getRoot(), "Queue Entities" , null);            for(int cut = 1 ; cut < 5 ; cut ++) {                 xmlnode.insertNodeIn(insert, "Index", java.lang.String.valueOf(i));                 xmlnode.insertNodeIn(insert, "Input Address", iter.getInputAdd());                 xmlnode.insertNodeIn(insert, "Output", iter.getOutputAdd());                 xmlnode.insertNodeIn(insert, "Parameter", iter.toMencoderParameter());                 xmlnode.insertNodeIn(insert, "Movie Information", "");                 xmlnode.insertNodeIn(insert, "Index", java.lang.String.valueOf(i));                             }                    }           }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区在线| 欧美日韩精品欧美日韩精品| 亚洲精品videosex极品| 国产午夜亚洲精品午夜鲁丝片| 制服.丝袜.亚洲.另类.中文| 欧美日韩一区中文字幕| 在线观看视频一区| 欧美日韩视频在线一区二区| 91福利资源站| 一本色道a无线码一区v| 成人久久18免费网站麻豆| 成人综合婷婷国产精品久久蜜臀| 狠狠色丁香婷婷综合| 韩国女主播一区二区三区| 精彩视频一区二区| 国产乱国产乱300精品| 国产精品一级片在线观看| 国产精品一区二区三区99| 国产高清亚洲一区| 成人免费视频视频在线观看免费| 成人网在线播放| 91免费在线播放| 在线观看亚洲成人| 日韩欧美激情在线| 国产亚洲欧美激情| 亚洲男人都懂的| 亚洲国产精品久久人人爱蜜臀| 日韩电影免费在线| 国产一区二区三区精品视频| fc2成人免费人成在线观看播放 | 精品国产髙清在线看国产毛片| 欧美va亚洲va国产综合| 欧美精彩视频一区二区三区| 亚洲日本va在线观看| 三级久久三级久久久| 国产成人精品一区二区三区四区| 波多野结衣中文字幕一区 | 免费人成在线不卡| 国产精品69毛片高清亚洲| 一本大道久久a久久精品综合| 91精品一区二区三区久久久久久 | 欧洲精品中文字幕| 精品日韩av一区二区| 亚洲丝袜制服诱惑| 久久99国产乱子伦精品免费| 97国产精品videossex| 日韩欧美一区在线观看| 亚洲欧洲99久久| 秋霞电影网一区二区| 色香蕉成人二区免费| 久久午夜羞羞影院免费观看| 亚洲国产成人高清精品| av一区二区三区黑人| 日韩欧美www| 一卡二卡三卡日韩欧美| 成人丝袜高跟foot| 精品成人私密视频| 日韩电影在线观看电影| 日本乱人伦一区| 国产亚洲欧美中文| 精品一区二区三区影院在线午夜| 在线看不卡av| 亚洲女人小视频在线观看| 韩日精品视频一区| 91精品国产黑色紧身裤美女| 亚洲精品免费视频| 成人午夜又粗又硬又大| 久久影院视频免费| 美女视频一区二区| 97久久精品人人做人人爽| 国产综合久久久久久久久久久久| 亚洲综合色自拍一区| 成人av片在线观看| 国产欧美日韩中文久久| 久久国产精品无码网站| 日韩一区二区三区四区五区六区| 亚洲线精品一区二区三区| 一本久久综合亚洲鲁鲁五月天| 国产嫩草影院久久久久| 国产成人精品一区二区三区网站观看 | 亚洲精品国产无天堂网2021| 99久久久国产精品| 国产精品激情偷乱一区二区∴| 国产在线精品国自产拍免费| 精品国产凹凸成av人网站| 久久精品国产成人一区二区三区| 欧美一级高清大全免费观看| 日韩专区一卡二卡| 欧美第一区第二区| 久久国产综合精品| 日韩三级视频中文字幕| 中文字幕av免费专区久久| 26uuu精品一区二区在线观看| 3d动漫精品啪啪一区二区竹菊| 97精品超碰一区二区三区| 国产精品欧美一区喷水| 91看片淫黄大片一级在线观看| 亚洲免费av在线| 欧美日韩国产影片| 九九**精品视频免费播放| 欧美国产精品一区二区三区| 99精品欧美一区二区三区综合在线| 自拍偷拍国产精品| 欧美日韩精品一区二区三区四区| 日本三级亚洲精品| 久久精品欧美日韩精品 | 在线综合视频播放| 国产乱子轮精品视频| 成人高清视频在线| 一区二区三区精密机械公司| 黑人精品欧美一区二区蜜桃 | 高清在线不卡av| 亚洲三级免费电影| 精品久久久网站| 岛国av在线一区| 亚洲国产色一区| 国产清纯美女被跳蛋高潮一区二区久久w | 亚洲欧美自拍偷拍| 91精品午夜视频| 国产福利不卡视频| 偷拍自拍另类欧美| 中文字幕乱码日本亚洲一区二区| 欧美三片在线视频观看| 国内成+人亚洲+欧美+综合在线 | 亚洲一区二区三区影院| 久久综合成人精品亚洲另类欧美 | 午夜精品一区二区三区三上悠亚| 国产一区在线视频| 亚洲成人免费在线| 日本一二三不卡| 精品久久久久久久一区二区蜜臀| 色综合视频一区二区三区高清| 狠狠色狠狠色综合系列| 亚洲电影在线播放| 亚洲视频综合在线| 久久精品一区二区三区不卡| 3d动漫精品啪啪1区2区免费 | 91免费观看国产| 国产精品 日产精品 欧美精品| 亚洲电影中文字幕在线观看| 亚洲日本青草视频在线怡红院| 久久夜色精品一区| 日韩欧美在线1卡| 91精品国产91久久综合桃花| 日本乱码高清不卡字幕| 不卡av在线免费观看| 国产精品综合视频| 国产精品黄色在线观看| 国产精品一区一区三区| 亚洲精品成人悠悠色影视| 国产无一区二区| 久久久综合视频| xf在线a精品一区二区视频网站| 制服.丝袜.亚洲.另类.中文| 欧美日韩视频第一区| 欧美日韩一卡二卡三卡 | 国产精品美女久久久久久久网站| 精品嫩草影院久久| 日韩久久精品一区| 欧美大胆一级视频| 欧美大片在线观看一区二区| 精品少妇一区二区三区视频免付费| 7777精品伊人久久久大香线蕉完整版 | 日韩精品一区国产麻豆| 日韩一区二区三区免费看| 欧美一区二区三区性视频| 91.成人天堂一区| 日韩欧美123| 久久亚洲影视婷婷| 国产精品亲子伦对白| 亚洲少妇最新在线视频| 亚洲免费高清视频在线| 亚洲成年人影院| 麻豆国产精品官网| 成人性生交大片免费看视频在线| 成人黄页毛片网站| 一本高清dvd不卡在线观看| 欧美亚洲图片小说| 日韩欧美一区在线| 中文字幕av在线一区二区三区| ...中文天堂在线一区| 亚洲成人激情自拍| 国产又黄又大久久| 一本色道a无线码一区v| 91精品国产色综合久久| 国产女人水真多18毛片18精品视频| 亚洲欧美一区二区三区久本道91| 亚洲午夜精品在线| 国产一区二区免费在线| 91免费版在线| 日韩一区二区精品在线观看| 国产视频一区不卡| 亚洲成人久久影院| 国产91富婆露脸刺激对白| 欧美亚洲综合色| 国产偷v国产偷v亚洲高清| 亚洲成av人影院| 国产精品亚洲第一| 欧美精品色一区二区三区| 亚洲国产成人私人影院tom|