Class ApacheZipSlipAwareZipFile


  • public class ApacheZipSlipAwareZipFile
    extends ZipFile
    • Constructor Detail

      • ApacheZipSlipAwareZipFile

        public ApacheZipSlipAwareZipFile​(java.io.File f)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • ApacheZipSlipAwareZipFile

        public ApacheZipSlipAwareZipFile​(java.lang.String name)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • ApacheZipSlipAwareZipFile

        public ApacheZipSlipAwareZipFile​(java.lang.String name,
                                         java.lang.String encoding)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • ApacheZipSlipAwareZipFile

        public ApacheZipSlipAwareZipFile​(java.io.File f,
                                         java.lang.String encoding)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • ApacheZipSlipAwareZipFile

        public ApacheZipSlipAwareZipFile​(java.io.File f,
                                         java.lang.String encoding,
                                         boolean useUnicodeExtraFields)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getEntries

        public java.util.Enumeration<ZipArchiveEntry> getEntries()
      • getEntriesInPhysicalOrder

        public java.util.Enumeration<ZipArchiveEntry> getEntriesInPhysicalOrder()
      • getEntry

        public ZipArchiveEntry getEntry​(java.lang.String name)
      • getEntries

        public java.lang.Iterable<ZipArchiveEntry> getEntries​(java.lang.String name)
      • getEntriesInPhysicalOrder

        public java.lang.Iterable<ZipArchiveEntry> getEntriesInPhysicalOrder​(java.lang.String name)
      • canReadEntryData

        public boolean canReadEntryData​(ZipArchiveEntry ze)
      • getInputStream

        public java.io.InputStream getInputStream​(ZipArchiveEntry ze)
                                           throws java.io.IOException,
                                                  java.util.zip.ZipException
        Throws:
        java.io.IOException
        java.util.zip.ZipException
      • getUnixSymlink

        public java.lang.String getUnixSymlink​(ZipArchiveEntry entry)
                                        throws java.io.IOException
        Throws:
        java.io.IOException