Class UpdateJarPatcher


  • public class UpdateJarPatcher
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String MANIFEST_NAME  
      protected java.util.Map patch_entries  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected UpdateJarPatcher​(java.io.InputStream input_file, java.io.InputStream patch_file, java.io.OutputStream output_file, LoggerChannel log)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getPatch​(java.lang.String name)  
      protected void readPatchEntries​(java.io.InputStream is)  
      private static void writeEntry​(java.util.jar.JarOutputStream jos, java.util.jar.JarEntry entry, java.io.InputStream data)  
      • Methods inherited from class java.lang.Object

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

      • MANIFEST_NAME

        private static java.lang.String MANIFEST_NAME
      • patch_entries

        protected java.util.Map patch_entries
    • Constructor Detail

      • UpdateJarPatcher

        protected UpdateJarPatcher​(java.io.InputStream input_file,
                                   java.io.InputStream patch_file,
                                   java.io.OutputStream output_file,
                                   LoggerChannel log)
                            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • writeEntry

        private static void writeEntry​(java.util.jar.JarOutputStream jos,
                                       java.util.jar.JarEntry entry,
                                       java.io.InputStream data)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • readPatchEntries

        protected void readPatchEntries​(java.io.InputStream is)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • getPatch

        public java.io.InputStream getPatch​(java.lang.String name)