Package jetbrains.buildServer.util
Class ApacheZipSlipAwareArchiveInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.commons.compress.archivers.ArchiveInputStream
-
- jetbrains.buildServer.util.ApacheZipSlipAwareArchiveInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ApacheZipSlipAwareArchiveInputStream extends org.apache.commons.compress.archivers.ArchiveInputStream
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description ApacheZipSlipAwareArchiveInputStream(org.apache.commons.compress.archivers.ArchiveInputStream delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intavailable()booleancanReadEntryData(org.apache.commons.compress.archivers.ArchiveEntry archiveEntry)voidclose()longgetBytesRead()intgetCount()Deprecated.org.apache.commons.compress.archivers.ArchiveEntrygetNextEntry()voidmark(int i)booleanmarkSupported()intread()intread(byte[] bytes)intread(byte[] bytes, int i, int i1)voidreset()longskip(long l)
-
-
-
Method Detail
-
getNextEntry
public org.apache.commons.compress.archivers.ArchiveEntry getNextEntry() throws IOException- Specified by:
getNextEntryin classorg.apache.commons.compress.archivers.ArchiveInputStream- Throws:
IOException
-
read
public int read() throws IOException- Overrides:
readin classorg.apache.commons.compress.archivers.ArchiveInputStream- Throws:
IOException
-
getCount
@Deprecated public int getCount()
Deprecated.- Overrides:
getCountin classorg.apache.commons.compress.archivers.ArchiveInputStream
-
getBytesRead
public long getBytesRead()
- Overrides:
getBytesReadin classorg.apache.commons.compress.archivers.ArchiveInputStream
-
canReadEntryData
public boolean canReadEntryData(org.apache.commons.compress.archivers.ArchiveEntry archiveEntry)
- Overrides:
canReadEntryDatain classorg.apache.commons.compress.archivers.ArchiveInputStream
-
read
public int read(@NotNull byte[] bytes) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(@NotNull byte[] bytes, int i, int i1) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
public long skip(long l) throws IOException- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
mark
public void mark(int i)
- Overrides:
markin classorg.apache.commons.compress.archivers.ArchiveInputStream
-
reset
public void reset() throws IOException- Overrides:
resetin classorg.apache.commons.compress.archivers.ArchiveInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classorg.apache.commons.compress.archivers.ArchiveInputStream
-
-