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

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

?? compoundfilereader.java

?? lucene完整源碼
?? JAVA
字號:
package org.apache.lucene.index;/** * Copyright 2004 The Apache Software Foundation * * Licensed 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. */import org.apache.lucene.store.Directory;import org.apache.lucene.store.IndexInput;import org.apache.lucene.store.BufferedIndexInput;import org.apache.lucene.store.IndexOutput;import org.apache.lucene.store.Lock;import java.util.HashMap;import java.io.IOException;/** * Class for accessing a compound stream. * This class implements a directory, but is limited to only read operations. * Directory methods that would normally modify data throw an exception. * * @author Dmitry Serebrennikov * @version $Id: CompoundFileReader.java 208905 2005-07-03 10:40:01Z dnaber $ */class CompoundFileReader extends Directory {    private static final class FileEntry {        long offset;        long length;    }    // Base info    private Directory directory;    private String fileName;    private IndexInput stream;    private HashMap entries = new HashMap();    public CompoundFileReader(Directory dir, String name)    throws IOException    {        directory = dir;        fileName = name;        boolean success = false;        try {            stream = dir.openInput(name);            // read the directory and init files            int count = stream.readVInt();            FileEntry entry = null;            for (int i=0; i<count; i++) {                long offset = stream.readLong();                String id = stream.readString();                if (entry != null) {                    // set length of the previous entry                    entry.length = offset - entry.offset;                }                entry = new FileEntry();                entry.offset = offset;                entries.put(id, entry);            }            // set the length of the final entry            if (entry != null) {                entry.length = stream.length() - entry.offset;            }            success = true;        } finally {            if (! success && (stream != null)) {                try {                    stream.close();                } catch (IOException e) { }            }        }    }    public Directory getDirectory() {        return directory;    }    public String getName() {        return fileName;    }    public synchronized void close() throws IOException {        if (stream == null)            throw new IOException("Already closed");        entries.clear();        stream.close();        stream = null;    }    public synchronized IndexInput openInput(String id)    throws IOException    {        if (stream == null)            throw new IOException("Stream closed");        FileEntry entry = (FileEntry) entries.get(id);        if (entry == null)            throw new IOException("No sub-file with id " + id + " found");        return new CSIndexInput(stream, entry.offset, entry.length);    }    /** Returns an array of strings, one for each file in the directory. */    public String[] list() {        String res[] = new String[entries.size()];        return (String[]) entries.keySet().toArray(res);    }    /** Returns true iff a file with the given name exists. */    public boolean fileExists(String name) {        return entries.containsKey(name);    }    /** Returns the time the compound file was last modified. */    public long fileModified(String name) throws IOException {        return directory.fileModified(fileName);    }    /** Set the modified time of the compound file to now. */    public void touchFile(String name) throws IOException {        directory.touchFile(fileName);    }    /** Not implemented     * @throws UnsupportedOperationException */    public void deleteFile(String name)    {        throw new UnsupportedOperationException();    }    /** Not implemented     * @throws UnsupportedOperationException */    public void renameFile(String from, String to)    {        throw new UnsupportedOperationException();    }    /** Returns the length of a file in the directory.     * @throws IOException if the file does not exist */    public long fileLength(String name)    throws IOException    {        FileEntry e = (FileEntry) entries.get(name);        if (e == null)            throw new IOException("File " + name + " does not exist");        return e.length;    }    /** Not implemented     * @throws UnsupportedOperationException */    public IndexOutput createOutput(String name)    {        throw new UnsupportedOperationException();    }    /** Not implemented     * @throws UnsupportedOperationException */    public Lock makeLock(String name)    {        throw new UnsupportedOperationException();    }    /** Implementation of an IndexInput that reads from a portion of the     *  compound file. The visibility is left as "package" *only* because     *  this helps with testing since JUnit test cases in a different class     *  can then access package fields of this class.     */    static final class CSIndexInput extends BufferedIndexInput {        IndexInput base;        long fileOffset;        long length;        CSIndexInput(final IndexInput base, final long fileOffset, final long length)        {            this.base = base;            this.fileOffset = fileOffset;            this.length = length;        }        /** Expert: implements buffer refill.  Reads bytes from the current         *  position in the input.         * @param b the array to read bytes into         * @param offset the offset in the array to start storing bytes         * @param len the number of bytes to read         */        protected void readInternal(byte[] b, int offset, int len)        throws IOException        {            synchronized (base) {              long start = getFilePointer();              if(start + len > length)                throw new IOException("read past EOF");              base.seek(fileOffset + start);              base.readBytes(b, offset, len);            }        }        /** Expert: implements seek.  Sets current position in this file, where         *  the next {@link #readInternal(byte[],int,int)} will occur.         * @see #readInternal(byte[],int,int)         */        protected void seekInternal(long pos) {}        /** Closes the stream to further operations. */        public void close() {}        public long length() {          return length;        }    }    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看精品一区| 激情丁香综合五月| 一区二区在线观看免费视频播放| 国产欧美1区2区3区| 久久色在线视频| 日本一区二区三区四区在线视频| 日韩欧美一级二级三级久久久| 欧美午夜片在线观看| 欧美少妇bbb| 欧美精品aⅴ在线视频| 91精品国产综合久久久久久漫画| 欧美午夜寂寞影院| 91久久精品一区二区二区| 国产一区二区精品久久99| 国产成人精品亚洲午夜麻豆| 99精品欧美一区二区三区综合在线| 色婷婷狠狠综合| 欧美videossexotv100| 国产精品福利一区二区| 午夜一区二区三区在线观看| 久久精品72免费观看| 99久久国产免费看| 在线成人av网站| 国产精品国产三级国产| 亚洲国产日日夜夜| 国产成人午夜精品影院观看视频 | 亚洲一区二区在线免费看| 日日夜夜免费精品| 色综合色狠狠综合色| 久久午夜国产精品| 三级欧美在线一区| 波多野结衣亚洲| 精品国免费一区二区三区| 亚洲色图视频网| 国产伦精品一区二区三区免费迷 | 国产清纯在线一区二区www| 无码av中文一区二区三区桃花岛| 99视频国产精品| 久久精品免费在线观看| 久久er99精品| 91精品国产色综合久久ai换脸| 国产精品国产a| 国产精品一区三区| 日韩欧美一二三区| 亚洲va欧美va天堂v国产综合| 风间由美中文字幕在线看视频国产欧美| 制服丝袜亚洲播放| 国产美女av一区二区三区| 亚洲va天堂va国产va久| 在线欧美一区二区| 图片区小说区区亚洲影院| 在线精品视频免费播放| 一区二区三区丝袜| 欧美精品色综合| 国产高清无密码一区二区三区| 中文字幕精品—区二区四季| 成人91在线观看| 亚洲男人的天堂av| 欧美精品在线视频| 另类综合日韩欧美亚洲| www一区二区| 成人一区二区三区中文字幕| 中文字幕日韩欧美一区二区三区| 99国产精品视频免费观看| 国产自产2019最新不卡| 国产女主播一区| 欧美老人xxxx18| 日韩成人免费电影| 欧美激情综合在线| 91麻豆免费在线观看| 午夜精品一区二区三区三上悠亚| 精品乱码亚洲一区二区不卡| jizzjizzjizz欧美| 麻豆精品一区二区| 午夜精品久久久久久久99樱桃| 日本一区二区动态图| 精品视频1区2区3区| 国产精品资源在线看| 亚洲欧美另类综合偷拍| 精品国产91亚洲一区二区三区婷婷| 粉嫩欧美一区二区三区高清影视| 午夜一区二区三区视频| 久久久久久亚洲综合影院红桃 | 久久夜色精品一区| 欧美日韩大陆在线| 成人h精品动漫一区二区三区| 亚洲国产日韩在线一区模特| 国产日韩欧美精品在线| 日韩一级大片在线观看| 成人av动漫在线| 日韩电影网1区2区| 亚洲综合男人的天堂| 国内外成人在线| 日本免费在线视频不卡一不卡二| 亚洲乱码国产乱码精品精98午夜 | 国产精品久久久久一区| 国产三级久久久| 337p粉嫩大胆噜噜噜噜噜91av| 欧美日韩高清一区| 欧美区视频在线观看| 欧美午夜寂寞影院| 欧美性受极品xxxx喷水| 91首页免费视频| 成人永久免费视频| 国产大陆a不卡| 成人va在线观看| av男人天堂一区| 欧美色中文字幕| 欧美欧美午夜aⅴ在线观看| 欧美日韩在线播放三区| 欧美丰满嫩嫩电影| 日韩欧美国产wwwww| 欧美大肚乱孕交hd孕妇| 久久精品亚洲国产奇米99| 日本一区二区免费在线观看视频| 久久伊99综合婷婷久久伊| 中文字幕在线一区二区三区| 最近日韩中文字幕| 国产精品色哟哟| 亚洲尤物视频在线| 一区二区三区日韩欧美| 日韩精品欧美精品| 免费看黄色91| 成人久久久精品乱码一区二区三区| 国产精品一品二品| 欧美综合欧美视频| 亚洲午夜精品网| 精品在线免费观看| 成人美女视频在线观看18| 欧美性欧美巨大黑白大战| 91精品国产色综合久久| 日本一区二区成人| 免费成人在线观看视频| 精品一区二区三区香蕉蜜桃| 色综合天天综合网国产成人综合天 | 成人动漫av在线| 欧美日韩日日摸| 亚洲少妇屁股交4| 久久69国产一区二区蜜臀| 色网站国产精品| 国产精品天天看| 国产制服丝袜一区| 91黄色在线观看| 欧美videos中文字幕| 日本免费新一区视频| 91丨porny丨中文| 国产婷婷色一区二区三区| 老司机免费视频一区二区三区| 色爱区综合激月婷婷| 中文一区二区在线观看| 黄页网站大全一区二区| 欧美日韩一级片在线观看| 亚洲欧美日韩中文播放| 成人国产一区二区三区精品| 国产欧美一区在线| 国产精品一区二区你懂的| 337p日本欧洲亚洲大胆精品| 秋霞国产午夜精品免费视频| 欧美一区二区三区在线观看| 首页国产欧美久久| 欧美电影一区二区| 久久99精品国产麻豆婷婷洗澡| 欧美一二三区在线| 免费在线观看日韩欧美| 日韩精品一区二区三区老鸭窝| 蜜臀av在线播放一区二区三区| 欧美成人a视频| 国产一二三精品| 国产精品私人自拍| 欧美性大战久久久久久久| 亚洲成av人影院| 欧美电影免费观看高清完整版| 激情av综合网| 久久香蕉国产线看观看99| 91久久精品国产91性色tv| 免费高清在线一区| 亚洲精品视频免费看| 日韩精品综合一本久道在线视频| 99久久婷婷国产综合精品电影| 日日欢夜夜爽一区| 久久色中文字幕| 日本精品裸体写真集在线观看| 看国产成人h片视频| 中文字幕乱码日本亚洲一区二区| 成人福利视频在线| 奇米影视在线99精品| 国产精品久久久久久久久久免费看 | 国产成人午夜电影网| 亚洲欧美日韩在线| 亚洲第一主播视频| 一区二区三区中文字幕在线观看| 久久久久九九视频| 欧美成人一区二区| 欧美一区在线视频| 在线观看成人免费视频| aaa欧美大片| 成人午夜看片网址| 国产成人在线观看| 国产精品12区| 国产精品一级在线|