Package jetbrains.buildServer.util.impl
Class ArchiveExtractorManagerImpl
- java.lang.Object
-
- jetbrains.buildServer.util.impl.ArchiveExtractorManagerImpl
-
- All Implemented Interfaces:
ArchiveExtractorManager
public class ArchiveExtractorManagerImpl extends Object implements ArchiveExtractorManager
-
-
Constructor Summary
Constructors Constructor Description ArchiveExtractorManagerImpl(ExtensionHolder extensionHolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extractFiles(File archive, ArchiveFileSelector selector)
Selects appropriate archive extractor and extracts files from given archive filtered by file selector.Map<String,Long>
getEntitiesSize(File archive)
Map<String,Integer>
getEntitiesUnixPermissions(File archive)
-
-
-
Constructor Detail
-
ArchiveExtractorManagerImpl
public ArchiveExtractorManagerImpl(ExtensionHolder extensionHolder)
-
-
Method Detail
-
extractFiles
public void extractFiles(@NotNull File archive, @NotNull ArchiveFileSelector selector) throws IOException, UnsupportedArchiveTypeException
Description copied from interface:ArchiveExtractorManager
Selects appropriate archive extractor and extracts files from given archive filtered by file selector.- Specified by:
extractFiles
in interfaceArchiveExtractorManager
- Parameters:
archive
- archive to be processedselector
- selector for files within the archive- Throws:
IOException
- Any I/O error occurredUnsupportedArchiveTypeException
- Archive has unsupported format
-
getEntitiesSize
public Map<String,Long> getEntitiesSize(@NotNull File archive) throws IOException, UnsupportedArchiveTypeException
- Specified by:
getEntitiesSize
in interfaceArchiveExtractorManager
- Parameters:
archive
- archive to be processed- Returns:
- map of entities name to uncompressed size on this entry, same names which are used in
ArchiveFileSelector
will be used as keys, -1 as size may be returned if size is unknown - Throws:
IOException
- Any I/O error occurredUnsupportedArchiveTypeException
- Archive has unsupported format
-
getEntitiesUnixPermissions
public Map<String,Integer> getEntitiesUnixPermissions(@NotNull File archive) throws IOException, UnsupportedArchiveTypeException
- Specified by:
getEntitiesUnixPermissions
in interfaceArchiveExtractorManager
- 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 extractionUnsupportedArchiveTypeException
- Archive has unsupported format
-
-