Skip to content

Package io.github.qishr.cascara.common.util

Class JarFile

java.lang.Object
        io.github.qishr.cascara.common.util.ArchiveFile
                io.github.qishr.cascara.common.util.JarFile


public class JarFile
extends ArchiveFile

Method Summary

Modifier and Type Method Description
public static JarFile load(Path jarPath)
public Path getPath()
public Properties getManifestProperties()
public Properties getMavenProperties()
public String getModuleName()
public Set<String> getPackages()
public Set<String> getClassNames()
public static String getClassName(FileInfo fileInfo)
public static String getPackageName(FileInfo fileInfo)

Methods inherited from ArchiveFile

listFiles, extractFile, getInputStream, listFiles, extractFile, listFiles

Method Details

load

public static JarFile load(Path jarPath)

Throws:

IOException


getPath

public Path getPath()


getManifestProperties

public Properties getManifestProperties()


getMavenProperties

public Properties getMavenProperties()


getModuleName

public String getModuleName()


getPackages

public Set<String> getPackages()


getClassNames

public Set<String> getClassNames()


getClassName

public static String getClassName(FileInfo fileInfo)


getPackageName

public static String getPackageName(FileInfo fileInfo)