集册 Java实例教程 设置用于解析URL的软件包解析器

设置用于解析URL的软件包解析器

欢马劈雪     最近更新时间:2020-01-02 10:19:05

564
设置用于解析URL的软件包解析器

/*

 * Copyright (c) 2012 Data Harmonisation Panel

 * 

 * All rights reserved. This program and the accompanying materials are made

 * available under the terms of the GNU Lesser General Public License as

 * published by the Free Software Foundation, either version 3 of the License,

 * or (at your option) any later version.

 * 

 * You should have received a copy of the GNU Lesser General Public License

 * along with this distribution. If not, see <http://www.gnu.org/licenses/>.

 * 

 * Contributors:

 *     HUMBOLDT EU Integrated Project #030962

 *     Data Harmonisation Panel <http://www.dhpanel.eu>

 */

import java.io.File;
/* 
 来自 
*NowJava.com - 时  代  Java*/

import java.io.IOException;

import java.lang.reflect.Field;

import java.lang.reflect.InvocationTargetException;

import java.lang.reflect.Method;

import java.lang.reflect.Modifier;

import java.net.JarURLConnection;

import java.net.MalformedURLException;

import java.net.URI;

import java.net.URISyntaxException;

import java.net.URL;

import java.util.ArrayList;

import java.util.Collection;
/*
n o w j a   v  a . c o m - 时  代  Java 提供
*/

import java.util.Enumeration;

import java.util.Iterator;

import java.util.List;

import java.util.jar.JarEntry;

import java.util.jar.JarFile;

import java.util.zip.ZipException;


public class Main{

    /**

     * The package resolver used to retrieve URLs to packages

     */

    private static PackageResolver _packageResolver = new DefaultPackageResolver();

    
展开阅读全文