Assuming you have JDK installed, you can use "jar -tf jarName.jar" to get a list of classes that you can parse.
To get additional information about a particular class, you can use the command line javap utility to print a list of all methods and fields. It is in a fairly easily distinguishable format. For instance:
javap -classpath . com.prosc.io.ZipCreator Compiled from "ZipCreator.java" public class com.prosc.io.ZipCreator extends java.lang.Object{ public com.prosc.io.ZipCreator(); public java.lang.Integer getLevel(); public void setLevel(java.lang.Integer); public void createZip(java.io.File, java.io.File) throws java.io.IOException; public void createZip(java.io.File, java.util.zip.ZipOutputStream) throws java.io.IOException; public void setMaximumZipSize(long); static {}; }
source share