Package java.net

Examples of java.net.JarURLConnection.connect()


        JarFile jarFile = null;

        if (jarFileUrl != null) {
            JarURLConnection conn = (JarURLConnection) jarFileUrl.openConnection();
            conn.setUseCaches(false);
            conn.connect();
            jarFile = conn.getJarFile();
        }

        return jarFile;
    }
View Full Code Here


                try {
                    URL jarFileUrl = new URL("jar:" + location[0] + "!/");
                    JarURLConnection conn = (JarURLConnection) jarFileUrl
                            .openConnection();
                    conn.setUseCaches(false);
                    conn.connect();
                    jarFile = conn.getJarFile();
                    ZipEntry jarEntry = jarFile.getEntry(location[1]);
                    in = jarFile.getInputStream(jarEntry);
                    parseTLD(ctxt, location[0], in, jarFileUrl);
                } catch (Exception ex) {
View Full Code Here

    url = ctxt.getResource(location[0]);
    if (url == null) return;
    url = new URL("jar:" + url.toString() + "!/");
    JarURLConnection conn =
        (JarURLConnection) url.openConnection();
    conn.connect(); //@@@ necessary???
    jarFile = conn.getJarFile();
    jarEntry = jarFile.getEntry(location[1]);
    stream = jarFile.getInputStream(jarEntry);
    parseTLD(ctxt, location[0], stream);
    // FIXME @@@
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.