Class 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 outputJar
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JarIO

        public JarIO()
    • Method Detail

      • loadClasses

        public static java.util.List<org.objectweb.asm.tree.ClassNode> loadClasses​(java.io.File jarFile)
                                                                            throws java.io.IOException
        Loads 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