Package jetbrains.buildServer.util
Class ApacheZipSlipAwareZipFile
- java.lang.Object
-
- ZipFile
-
- jetbrains.buildServer.util.ApacheZipSlipAwareZipFile
-
public class ApacheZipSlipAwareZipFile extends ZipFile
-
-
Constructor Summary
Constructors Constructor Description ApacheZipSlipAwareZipFile(java.io.File f)
ApacheZipSlipAwareZipFile(java.io.File f, java.lang.String encoding)
ApacheZipSlipAwareZipFile(java.io.File f, java.lang.String encoding, boolean useUnicodeExtraFields)
ApacheZipSlipAwareZipFile(java.lang.String name)
ApacheZipSlipAwareZipFile(java.lang.String name, java.lang.String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canReadEntryData(ZipArchiveEntry ze)
java.util.Enumeration<ZipArchiveEntry>
getEntries()
java.lang.Iterable<ZipArchiveEntry>
getEntries(java.lang.String name)
java.util.Enumeration<ZipArchiveEntry>
getEntriesInPhysicalOrder()
java.lang.Iterable<ZipArchiveEntry>
getEntriesInPhysicalOrder(java.lang.String name)
ZipArchiveEntry
getEntry(java.lang.String name)
java.io.InputStream
getInputStream(ZipArchiveEntry ze)
java.lang.String
getUnixSymlink(ZipArchiveEntry entry)
-
-
-
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
-
-