Class ArchiverResolver

    • Constructor Detail

      • ArchiverResolver

        public ArchiverResolver()
    • Method Detail

      • getArchiver

        @NotNull
        public static @NotNull Archiver getArchiver​(@NotNull
                                                    @NotNull ArchiverType archiverType)
        Returns an instance of an archiver of the specified type.
        Parameters:
        archiverType - type of the archiver
        Returns:
        instance of an archiver of the specified type
        Throws:
        IllegalArgumentException - if an archiver of the specified type could not be constructed
      • getDefaultArchiveExtension

        @NotNull
        public static @NotNull String getDefaultArchiveExtension​(@NotNull
                                                                 @NotNull ArchiverType archiverType)
        Returns default archive file extension for the specified archiver type. Note that archivers may handle more than one extension - this method will return the default one.
        Parameters:
        archiverType - type of the archiver
        Returns:
        default archive file extension for archives handled by specified archiver type