All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kr.jclab.javautils.pluginloader.JarFileEntry Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package kr.jclab.javautils.pluginloader;

import java.io.File;
import java.util.jar.JarFile;

public class JarFileEntry implements Cloneable {
    private final File file;
    private final JarFile jarFile;
    private final String baseUrl;

    public JarFileEntry(File file, JarFile jarFile) {
        this.file = file;
        this.jarFile = jarFile;
        this.baseUrl = "jar:" + file.toURI().toString() + "!";
    }

    public File getFile() {
        return file;
    }

    public JarFile getJarFile() {
        return jarFile;
    }

    public String getBaseUrl() {
        return baseUrl;
    }

    @Override
    public JarFileEntry clone() {
        return new JarFileEntry(this.file, this.jarFile);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy