Enum Class ArchiveFormat

java.lang.Object
java.lang.Enum<ArchiveFormat>
net.sf.sevenzipjbinding.ArchiveFormat
All Implemented Interfaces:
Serializable, Comparable<ArchiveFormat>, Constable

public enum ArchiveFormat extends Enum<ArchiveFormat>
Enumeration of all supported archive types.
Format extraction compression Enum value
7z X X SEVEN_ZIP
Arj X - ARJ
BZip2 X X BZIP2
Cab X - CAB
Chm X - CHM
Compound - - -
Cpio X - CPIO
ar, a, deb, lib X - AR
Dmg - - -
Elf - - -
GZip X X GZIP
Hfs X - HFS
Iso X - ISO
Lzh X - LZH
Lzma X - LZMA
Macho - - -
Mub - - -
Nsis X - NSIS
Pa - - -
Rar X - RAR
Rar5 X - RAR5
Rpm X - RPM
Split X - SPLIT
Tar X X TAR
Udf X - UDF
Wim X - WIM
Xar X - XAR
XZ X X XZ
Z X - Z
Zip X X ZIP
Fat X - FAT
Ntfs X - NTFS
Since:
4.65-1
Author:
Boris Brodski
  • Enum Constant Details

  • Method Details

    • values

      public static ArchiveFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ArchiveFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMethodName

      public String getMethodName()
      Return name of the archive method
      Returns:
      name of the archive method
    • isOutArchiveSupported

      public boolean isOutArchiveSupported()
      Return whether this archive type supports creation/update operations
      Returns:
      true - creation/update operations are supported,
      false - only archive extraction is supported
    • getOutArchiveImplementation

      public Class<? extends OutArchiveImpl<?>> getOutArchiveImplementation()
      Get corresponding implementation class for archive update operations.
      Returns:
      the IOutArchive implementation class
    • supportMultipleFiles

      public boolean supportMultipleFiles()
      Return true, if the archive format is capable of compressing or storing multiple files within the archive.
      Returns:
      true - support multiple files, false support single file or stream
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ArchiveFormat>