Class TarArchiveExtractor

    • Constructor Detail

      • TarArchiveExtractor

        public TarArchiveExtractor()
    • Method Detail

      • 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
      • getSignature

        @Nullable
        public byte[] getSignature​(InputStream in)