Class JarFileCommitter

  • All Implemented Interfaces:
    ClassInfoLoader

    public class JarFileCommitter
    extends ClassFileLoader
    Does a lot of the same stuff as ClassFileLoader, but classes are committed to a JAR file instead of regular files.
    • Constructor Detail

      • JarFileCommitter

        public JarFileCommitter​(java.io.File file,
                                boolean compress,
                                java.lang.String version,
                                java.lang.String author)
                         throws java.io.IOException
        Constructor.
        Parameters:
        file - File representing JAR file
        compress - If true, contents of JAR file is compressed
        version - Version for the JAR file's manifest
        author - Author string from JAR file's manifest
        Throws:
        java.io.IOException
    • Method Detail

      • outputStreamFor

        protected java.io.OutputStream outputStreamFor​(java.lang.String name)
                                                throws java.io.IOException
        Description copied from class: ClassFileLoader
        Returns an OutputStream to which somed named entity is written. Any forward slashes in the name are replaced by File.separatorChar.
        Overrides:
        outputStreamFor in class ClassFileLoader
        Throws:
        java.io.IOException
      • done

        public void done()
                  throws java.io.IOException
        Signifies that we are finished with this JarFileCommitter.
        Overrides:
        done in class ClassFileLoader
        Throws:
        java.io.IOException