Class JarFile

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class JarFile
    extends java.util.jar.JarFile
    implements java.io.Closeable
    A wrapper over JarFile that verifies zip headers to protect against GIFAR attacks.
    See Also:
    Gifar
    • Constructor Summary

      Constructors 
      Constructor Description
      JarFile​(java.io.File file)  
      JarFile​(java.io.File file, boolean verify)  
      JarFile​(java.io.File file, boolean verify, int mode)  
      JarFile​(java.lang.String name)  
      JarFile​(java.lang.String name, boolean verify)  
    • Method Summary

      • Methods inherited from class java.util.jar.JarFile

        baseVersion, entries, getEntry, getInputStream, getJarEntry, getManifest, getVersion, isMultiRelease, runtimeVersion, stream, versionedStream
      • Methods inherited from class java.util.zip.ZipFile

        close, finalize, getComment, getName, size
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.Closeable

        close