Package jetbrains.buildServer.util
Class ApacheZipSlipAwareZipFile
- java.lang.Object
-
- org.apache.commons.compress.archivers.zip.ZipFile
-
- jetbrains.buildServer.util.ApacheZipSlipAwareZipFile
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ApacheZipSlipAwareZipFile extends org.apache.commons.compress.archivers.zip.ZipFile
-
-
Constructor Summary
Constructors Constructor Description ApacheZipSlipAwareZipFile(File f)
ApacheZipSlipAwareZipFile(File f, String encoding)
ApacheZipSlipAwareZipFile(File f, String encoding, boolean useUnicodeExtraFields)
ApacheZipSlipAwareZipFile(String name)
ApacheZipSlipAwareZipFile(String name, String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canReadEntryData(org.apache.commons.compress.archivers.zip.ZipArchiveEntry ze)
Enumeration<org.apache.commons.compress.archivers.zip.ZipArchiveEntry>
getEntries()
Iterable<org.apache.commons.compress.archivers.zip.ZipArchiveEntry>
getEntries(String name)
Enumeration<org.apache.commons.compress.archivers.zip.ZipArchiveEntry>
getEntriesInPhysicalOrder()
Iterable<org.apache.commons.compress.archivers.zip.ZipArchiveEntry>
getEntriesInPhysicalOrder(String name)
org.apache.commons.compress.archivers.zip.ZipArchiveEntry
getEntry(String name)
InputStream
getInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry ze)
String
getUnixSymlink(org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry)
-
-
-
Constructor Detail
-
ApacheZipSlipAwareZipFile
public ApacheZipSlipAwareZipFile(File f) throws IOException
- Throws:
IOException
-
ApacheZipSlipAwareZipFile
public ApacheZipSlipAwareZipFile(String name) throws IOException
- Throws:
IOException
-
ApacheZipSlipAwareZipFile
public ApacheZipSlipAwareZipFile(String name, String encoding) throws IOException
- Throws:
IOException
-
ApacheZipSlipAwareZipFile
public ApacheZipSlipAwareZipFile(File f, String encoding) throws IOException
- Throws:
IOException
-
ApacheZipSlipAwareZipFile
public ApacheZipSlipAwareZipFile(File f, String encoding, boolean useUnicodeExtraFields) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getEntries
public Enumeration<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> getEntries()
- Overrides:
getEntries
in classorg.apache.commons.compress.archivers.zip.ZipFile
-
getEntriesInPhysicalOrder
public Enumeration<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> getEntriesInPhysicalOrder()
- Overrides:
getEntriesInPhysicalOrder
in classorg.apache.commons.compress.archivers.zip.ZipFile
-
getEntry
public org.apache.commons.compress.archivers.zip.ZipArchiveEntry getEntry(String name)
- Overrides:
getEntry
in classorg.apache.commons.compress.archivers.zip.ZipFile
-
getEntries
public Iterable<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> getEntries(String name)
- Overrides:
getEntries
in classorg.apache.commons.compress.archivers.zip.ZipFile
-
getEntriesInPhysicalOrder
public Iterable<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> getEntriesInPhysicalOrder(String name)
- Overrides:
getEntriesInPhysicalOrder
in classorg.apache.commons.compress.archivers.zip.ZipFile
-
canReadEntryData
public boolean canReadEntryData(org.apache.commons.compress.archivers.zip.ZipArchiveEntry ze)
- Overrides:
canReadEntryData
in classorg.apache.commons.compress.archivers.zip.ZipFile
-
getInputStream
public InputStream getInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry ze) throws IOException, ZipException
- Overrides:
getInputStream
in classorg.apache.commons.compress.archivers.zip.ZipFile
- Throws:
IOException
ZipException
-
getUnixSymlink
public String getUnixSymlink(org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry) throws IOException
- Overrides:
getUnixSymlink
in classorg.apache.commons.compress.archivers.zip.ZipFile
- Throws:
IOException
-
-