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 | open(Path jarPath) | |
| public Path | getPath() | |
| public JarManifest | getManifest() | |
| public Properties | getMavenProperties() | |
| public String | getModuleName() | |
| public Set<String> | getPackages() | |
| public Set<String> | getClassNames() | |
| public java.lang.@io.github.qishr.cascara.common.annotation.Experimental String | guessoduleName() | |
| public static String | getClassName(EntryInfo fileInfo) | |
| public static String | getPackageName(EntryInfo fileInfo) |
Methods inherited from ArchiveFile
create, getInputStream, addFile, addFile, listFiles, addDirectory, listFiles, walk, extractFile, addDirectory, listFiles, extractFile, close
Method Details
open
public static JarFile open(Path jarPath)
Throws:
getPath
public Path getPath()
getManifest
public JarManifest getManifest()
getMavenProperties
public Properties getMavenProperties()
getModuleName
public String getModuleName()
getPackages
public Set<String> getPackages()
getClassNames
public Set<String> getClassNames()
guessoduleName
@io.github.qishr.cascara.common.annotation.Experimental
public java.lang.@io.github.qishr.cascara.common.annotation.Experimental String guessoduleName()
getClassName
public static String getClassName(EntryInfo fileInfo)
getPackageName
public static String getPackageName(EntryInfo fileInfo)