Class JarIO
- java.lang.Object
-
- io.github.opencubicchunks.stirrin.util.JarIO
-
public class JarIO extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JarIO()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<org.objectweb.asm.tree.ClassNode>loadClasses(java.io.File jarFile)Loads all class entries from a jar outputJarstatic voidsaveAsJar(java.util.List<org.objectweb.asm.tree.ClassNode> classNodes, java.io.File inputJar, java.io.File outputJar)Takes a list of class nodes and writes them to the output outputJar All non-class entries from the specified input jar are also written to the output jar
-
-
-
Method Detail
-
loadClasses
public static java.util.List<org.objectweb.asm.tree.ClassNode> loadClasses(java.io.File jarFile) throws java.io.IOExceptionLoads all class entries from a jar outputJar- Throws:
java.io.IOException
-
saveAsJar
public static void saveAsJar(java.util.List<org.objectweb.asm.tree.ClassNode> classNodes, java.io.File inputJar, java.io.File outputJar)Takes a list of class nodes and writes them to the output outputJar All non-class entries from the specified input jar are also written to the output jar
-
-