Package jetbrains.buildServer.util.impl
Class StreamZipArchiveExtractor
- java.lang.Object
-
- jetbrains.buildServer.util.impl.CommonsCompressArchiveExtractorBase
-
- jetbrains.buildServer.util.impl.StreamZipArchiveExtractor
-
- All Implemented Interfaces:
TeamCityExtension
,ArchiveExtractor
public class StreamZipArchiveExtractor extends CommonsCompressArchiveExtractorBase
-
-
Constructor Summary
Constructors Constructor Description StreamZipArchiveExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.commons.compress.archivers.ArchiveInputStream
createReader(File archive, InputStream archiveStream)
Map<String,Integer>
getEntitiesUnixPermissions(File archive)
boolean
isSupported(File archive)
Detect whether archive can be extract by this extractorvoid
setEncoding(String encoding)
-
Methods inherited from class jetbrains.buildServer.util.impl.CommonsCompressArchiveExtractorBase
extractFiles, getEntitiesSize, postProcessEntry
-
-
-
-
Method Detail
-
createReader
protected org.apache.commons.compress.archivers.ArchiveInputStream createReader(@NotNull File archive, @NotNull InputStream archiveStream) throws org.apache.commons.compress.archivers.ArchiveException
- Specified by:
createReader
in classCommonsCompressArchiveExtractorBase
- Throws:
org.apache.commons.compress.archivers.ArchiveException
-
getEntitiesUnixPermissions
public Map<String,Integer> getEntitiesUnixPermissions(@NotNull File archive) throws IOException
- Parameters:
archive
- archive to be processed- Returns:
- map of entities name to an integer representation of Unix permissions for this entry, same names which are used in
ArchiveFileSelector
will be used as keys, empty map if unix permissions are not available in the map - Throws:
IOException
- Error occurred during extraction
-
isSupported
public boolean isSupported(@NotNull File archive)
Description copied from interface:ArchiveExtractor
Detect whether archive can be extract by this extractor- Parameters:
archive
- path to archive- Returns:
- whether archive can be extract by this extractor
-
setEncoding
public void setEncoding(@NotNull String encoding)
-
-