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 booleancanReadEntryData(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.ZipArchiveEntrygetEntry(String name)InputStreamgetInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry ze)StringgetUnixSymlink(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:
getEntriesin classorg.apache.commons.compress.archivers.zip.ZipFile
-
getEntriesInPhysicalOrder
public Enumeration<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> getEntriesInPhysicalOrder()
- Overrides:
getEntriesInPhysicalOrderin classorg.apache.commons.compress.archivers.zip.ZipFile
-
getEntry
public org.apache.commons.compress.archivers.zip.ZipArchiveEntry getEntry(String name)
- Overrides:
getEntryin classorg.apache.commons.compress.archivers.zip.ZipFile
-
getEntries
public Iterable<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> getEntries(String name)
- Overrides:
getEntriesin classorg.apache.commons.compress.archivers.zip.ZipFile
-
getEntriesInPhysicalOrder
public Iterable<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> getEntriesInPhysicalOrder(String name)
- Overrides:
getEntriesInPhysicalOrderin classorg.apache.commons.compress.archivers.zip.ZipFile
-
canReadEntryData
public boolean canReadEntryData(org.apache.commons.compress.archivers.zip.ZipArchiveEntry ze)
- Overrides:
canReadEntryDatain classorg.apache.commons.compress.archivers.zip.ZipFile
-
getInputStream
public InputStream getInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry ze) throws IOException, ZipException
- Overrides:
getInputStreamin classorg.apache.commons.compress.archivers.zip.ZipFile- Throws:
IOExceptionZipException
-
getUnixSymlink
public String getUnixSymlink(org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry) throws IOException
- Overrides:
getUnixSymlinkin classorg.apache.commons.compress.archivers.zip.ZipFile- Throws:
IOException
-
-