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

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

?? archiveclasspathentry.java

?? jsr170接口的java實現。是個apache的開源項目。
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * 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.jackrabbit.classloader;import java.io.IOException;import java.io.InputStream;import java.net.MalformedURLException;import java.net.URL;import java.util.HashMap;import java.util.Map;import java.util.jar.JarEntry;import java.util.jar.JarInputStream;import java.util.jar.Manifest;import javax.jcr.Property;import javax.jcr.RepositoryException;import org.apache.jackrabbit.net.URLFactory;import org.slf4j.Logger;import org.slf4j.LoggerFactory;/** * The <code>ArchiveClassPathEntry</code> implements the {@link ClassPathEntry} * abstract class with support for archives containing classes and other * resources. The path used to construct the instance is the path of an item * resolving to a property containing the jar archive to access. * * @author Felix Meschberger */class ArchiveClassPathEntry extends ClassPathEntry {    /** Default logger */    private static final Logger log =        LoggerFactory.getLogger(ArchiveClassPathEntry.class);    /** The property containing the archive */    private final Property prop;    /**     * Cache all entries in the archive for faster decision on whether such     * an entry is contained.     */    private Map entryMap;    /**     * The JAR file manifest. Set on demand by the {@link #getManifest()}     * method.     */    private Manifest jarManifest;    /**     * Flag to indicate, whether the {@link #jarManifest} has already been read     * from the archive. This field is used and set by the     * {@link #getManifest()} to decide, whether to try to read the manifest.     */    private boolean jarManifestRead;    /**     * Creates an instance of the <code>ArchiveClassPathEntry</code> class.     *     * @param prop The <code>Property</code> containing the archive and     *      the session used to access the repository.     * @param path The original class path entry leading to the creation of     *      this instance. This is not necessairily the same path as the     *      properties path if the property was found through the primary     *      item chain.     *     * @throws RepositoryException If an error occurrs retrieving the session     *      from the property.     */    ArchiveClassPathEntry(Property prop, String path) throws RepositoryException {        super(prop.getSession(), path);        this.prop = prop;    }    /**     * Clones the indicated <code>ArchiveClassPathEntry</code> object by     * taking over its path, session and property.     *     * @param base The base <code>ArchiveClassPath</code> entry to clone.     *     * @see ClassPathEntry#ClassPathEntry(ClassPathEntry)     */    protected ArchiveClassPathEntry(ArchiveClassPathEntry base) {        super(base);        this.prop = base.prop;    }    /**     * Returns the <code>Property</code> containing the JAR file of this     * archive class path entry.     */    protected Property getProperty() {        return prop;    }    /**     * Returns a {@link ClassLoaderResource} for the named resource if it     * can be found in the archive identified by the path given at     * construction time. Note that if the archive property would exist but is     * not readable by the current session, no resource is returned.     * <p>     * This method accesses the archive through an <code>InputStream</code>     * retrievedfrom the property. This <code>InputStream</code> is closed before     * returning to the caller to release the resources behind the stream     * such that it might be updated, etc. For this reason the resource     * instance returned will again open an <code>InputStream</code> on the     * archive property to access the resource. Users of the resource     * <code>InputStream</code> are encouraged to close the stream when no     * longer used to prevent lockups in the Repository.     *     * @param name The name of the resource to return. If the resource would     *      be a class the name must already be modified to denote a valid     *      path, that is dots replaced by slashes and the <code>.class</code>     *      extension attached.     *     * @return The {@link ClassLoaderResource} identified by the name or     *      <code>null</code> if no resource is found for that name.     */    public ClassLoaderResource getResource(final String name) {        JarInputStream zins = null;        try {            // get the archive and try to find the entry            zins = getJarInputStream(prop);            JarEntry entry = findEntry(zins, name);            // if found create the resource to return            if (entry != null) {                return new ArchiveClassPathResource(this, entry);            }            log.debug("getResource: resource {} not found in archive {}", name,                path);        } catch (IOException ioe) {            log.warn("getResource: problem accessing the archive {} for {}",                new Object[]{ path, name}, ioe);        } catch (RepositoryException re) {            log.warn("getResource: problem accessing the archive {} for {}",                new Object[]{ path, name}, re);        } finally {            // make sure streams are closed at the end            if (zins != null) {                try {                    zins.close();                } catch (IOException ignore) {                }            }        }        // invariant : not found or problem accessing the archive        return null;    }    /**     * Returns a <code>ClassPathEntry</code> with the same configuration as     * this <code>ClassPathEntry</code>.     * <p>     * The <code>ArchiveClassPathEntry</code> class has internal state.     * Therefore a new instance is created from the unmodifiable configuration     * of this instance.     */    ClassPathEntry copy() {        return new ArchiveClassPathEntry(this);    }    /**     * Returns a JAR URL with no entry as the base URL of this class path entry.     */    public URL toURL() {        if (baseURL == null) {            try {                baseURL = URLFactory.createJarURL(session, path, null);            } catch (MalformedURLException mue) {                log.warn("Problem creating baseURI for " + path, mue);            }        }        return baseURL;    }    //----------- internal helper to find the entry ------------------------    /**     * Returns a JAR URL to access the named resource within the archive     * underlying this class path entry. This is a helper method for the     * {@link ClassLoaderResource} instance returned by     * {@link #getResource(String)} method.     * <p>     * This method does not check, whether the named entry actually exists in     * the underlying archive.     *     * @param name The name of the resource for which to create the JAR URL.     */    protected URL getURL(String name) {        try {            return URLFactory.createJarURL(session, path, name);        } catch (MalformedURLException mue) {            log.error("getURL: Cannot create URL for " + name, mue);        }        return null;    }    /**     * Returns an URL to access the underlying archive itself of this class     * path entry. The URL returned may be used as the code source for Java     * securtiy protection domains. This is a helper method for the     * {@link ClassLoaderResource} instance returned by     * {@link #getResource(String)} method.     *     * @return The URL to access the underlying archive.     */    protected URL getCodeSourceURL() {        try {            return URLFactory.createURL(session, path);        } catch (MalformedURLException mue) {            log.warn("getCodeSourceURL: Cannot getURL for " + path, mue);        }        return null;    }    /**     * Returns a <code>JarInputStream</code> from the property.     *     * @param property The <code>Property</code> containing the archive to     *      access.     *     * @return A valid <code>JarInputStream</code>.     *     * @throws RepositoryException If an <code>InputStream</code> cannot be     *      retrieved from the property.     * @throws IOException If the <code>JarInputStream</code> cannot be     *      created.     */    static JarInputStream getJarInputStream(Property property)            throws RepositoryException, IOException {        return new JarInputStream(property.getStream());    }    /**     * Returns the <code>Manifest</code> object of the JAR archive file     * underlying this archive class path entry. If no manifest exists in the     * JAR file or if the archive is not a JAR file at - e.g. a plain ZIP     * file - this method returns <code>null</code>. If an error occurrs     * trying to access the manifest, <code>null</code> is also returned. Later     * calls to this method, will not try again to read the manifest file,     * though.     * <p>     * This method is synchronized to prevent two threads from trying to access     * the manifest at the same time, which might result in false negative     * returned.     *     * @return The manifest contained in the underlying JAR file or     *      <code>null</code> if none exists or an error occurrs trying to     *      load the manifest.     */    protected synchronized Manifest getManifest() {        if (jarManifest == null && !jarManifestRead) {            // immediately mark the manifest read, to prevent repeated read            // in the case of missing manifest            jarManifestRead = true;            JarInputStream zipIns = null;            try {                zipIns = new JarInputStream(prop.getStream());                jarManifest = zipIns.getManifest();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品久久久久久久91蜜桃| 欧美亚洲高清一区二区三区不卡| 亚洲已满18点击进入久久| 久久久久久免费网| 欧美成人aa大片| 精品国产制服丝袜高跟| 欧美韩国一区二区| 日韩欧美国产精品一区| 欧美一级一区二区| 日韩精品资源二区在线| 欧美一级艳片视频免费观看| 91精品国产91久久综合桃花| 欧美一区二区三区在| 欧美一区二区三区四区视频| 日韩一级成人av| 久久亚洲私人国产精品va媚药| 精品国产成人在线影院| 精品国产伦一区二区三区观看方式| 欧美一级免费大片| 精品国产3级a| 国产精品国产自产拍高清av王其| 国产欧美一区二区三区网站| 1区2区3区国产精品| 伊人婷婷欧美激情| 午夜精品免费在线| 极品尤物av久久免费看| 成人动漫一区二区| 日本电影欧美片| 91精品蜜臀在线一区尤物| 欧美大片在线观看| 中文字幕在线观看不卡视频| 一区二区三区免费网站| 美女视频黄免费的久久| 国产精品一区二区三区99| hitomi一区二区三区精品| 在线视频你懂得一区| 日韩欧美久久久| 亚洲国产高清不卡| 无吗不卡中文字幕| 国产suv精品一区二区6| 欧洲视频一区二区| 26uuu精品一区二区| 亚洲激情第一区| 国模冰冰炮一区二区| 欧美在线色视频| 久久亚洲免费视频| 亚洲午夜影视影院在线观看| 国产乱子轮精品视频| 欧美亚洲尤物久久| 中国色在线观看另类| 三级一区在线视频先锋| 成人18视频在线播放| 91精品欧美一区二区三区综合在| 国产精品久久久久久久久动漫| 亚洲福利一二三区| 99国产精品视频免费观看| 欧美一区二区免费观在线| 日本美女一区二区三区视频| 不卡欧美aaaaa| 精品国产三级a在线观看| 亚洲午夜精品网| 99riav一区二区三区| 精品国产亚洲一区二区三区在线观看| 一区二区三区免费观看| 福利一区在线观看| 91精品国产手机| 亚洲一二三区在线观看| 成人国产免费视频| 久久久久久久久伊人| 免费精品视频最新在线| 欧美日韩不卡一区| 亚洲欧洲制服丝袜| 97se亚洲国产综合在线| 国产三级欧美三级| 国内精品久久久久影院一蜜桃| 日韩一区二区电影网| 亚洲不卡av一区二区三区| 色av综合在线| 一区二区三区四区五区视频在线观看| 成人一区在线观看| 日本一区二区免费在线观看视频 | 久热成人在线视频| 欧美一三区三区四区免费在线看| 亚洲成人三级小说| 欧美日韩视频在线观看一区二区三区| 怡红院av一区二区三区| 色综合一区二区| 一区二区三区四区不卡在线| 日本丶国产丶欧美色综合| 一区二区国产视频| 欧美视频在线播放| 日本伊人精品一区二区三区观看方式| 欧美电影一区二区三区| 久久99精品久久久久久久久久久久| 欧美一区二区视频在线观看2022| 久久国产夜色精品鲁鲁99| 亚洲桃色在线一区| 91麻豆123| 午夜精品影院在线观看| 日韩一区二区三区在线视频| 久久国产日韩欧美精品| 欧美国产视频在线| 91在线porny国产在线看| 一区二区欧美国产| 日韩欧美一区二区久久婷婷| 国产激情精品久久久第一区二区| 国产精品私人自拍| 欧美日产在线观看| 国产精品99久久久久久久女警 | www.久久久久久久久| 夜夜亚洲天天久久| 欧美变态凌虐bdsm| 99九九99九九九视频精品| 亚洲资源在线观看| 久久久综合视频| 91精品福利视频| 精品中文字幕一区二区小辣椒 | 色综合夜色一区| 日韩有码一区二区三区| 国产日韩视频一区二区三区| 欧美在线综合视频| 国产一区二区按摩在线观看| 亚洲精品高清视频在线观看| 欧美一级二级三级乱码| 99国产精品99久久久久久| 麻豆精品在线视频| 亚洲四区在线观看| 久久女同互慰一区二区三区| 欧美写真视频网站| 成人午夜碰碰视频| 免费成人美女在线观看.| ...av二区三区久久精品| 日韩精品专区在线影院观看| 在线一区二区三区四区五区| 国产乱码一区二区三区| 精品一二三四区| 亚洲国产欧美另类丝袜| 国产精品成人免费在线| 精品成人佐山爱一区二区| 欧美日韩精品是欧美日韩精品| 波多野结衣中文字幕一区二区三区| 六月丁香婷婷色狠狠久久| 亚洲已满18点击进入久久| 国产精品电影一区二区三区| 久久综合成人精品亚洲另类欧美 | 亚洲精品在线观| 欧美视频完全免费看| 91丨九色丨国产丨porny| 国产剧情一区二区三区| 麻豆精品一二三| 日韩av在线播放中文字幕| 一区二区三区在线影院| 亚洲视频免费在线| 亚洲天堂2016| 亚洲最新视频在线观看| 国产精品狼人久久影院观看方式| 国产日韩欧美高清| 国产午夜亚洲精品午夜鲁丝片| 精品va天堂亚洲国产| 久久先锋影音av鲁色资源网| 26uuu国产日韩综合| 26uuu精品一区二区在线观看| 精品国产亚洲一区二区三区在线观看| 欧美一个色资源| 精品不卡在线视频| 久久综合狠狠综合久久激情| 久久亚洲精品国产精品紫薇| 中文字幕免费不卡| 亚洲乱码国产乱码精品精小说 | 欧美性猛交xxxxxx富婆| 91福利资源站| 欧美精品丝袜久久久中文字幕| 欧美女孩性生活视频| 国产精品午夜春色av| 欧美国产欧美亚州国产日韩mv天天看完整 | 日韩精品一区在线| 久久综合九色综合久久久精品综合 | 成av人片一区二区| 91久久国产最好的精华液| 欧美精品自拍偷拍动漫精品| 日韩精品一区二区三区蜜臀| 久久精品男人天堂av| 亚洲日本va在线观看| 午夜久久久久久电影| 久久电影国产免费久久电影| 成人理论电影网| 欧美伊人久久久久久午夜久久久久| 91精品久久久久久久91蜜桃| 久久久精品中文字幕麻豆发布| 日韩理论电影院| 男男视频亚洲欧美| 99久久综合狠狠综合久久| 欧美日韩色综合| 欧美激情中文不卡| 日日夜夜免费精品视频| 成人国产亚洲欧美成人综合网| 欧美高清视频不卡网| 国产精品久久久久久久久免费桃花| 三级不卡在线观看| 99九九99九九九视频精品|