Package net.sf.sevenzipjbinding
Enum Class ArchiveFormat
- All Implemented Interfaces:
Serializable,Comparable<ArchiveFormat>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionar, a, deb, libArj format.BZip2 format.Cab format.Chm format.Cpio format.FAT - (vfat file system);Gzip format.Hfs format.Iso format.Lzh format.Lzma format.Nsis format.NTFS - (NTFS file system);Rar format.Rar5 format.Rpm format.7z format.Split format.Tar format.Udf format.Wim format.Xar format.Xz format.Z format.Zip format. -
Method Summary
Modifier and TypeMethodDescriptionReturn name of the archive methodClass<? extends OutArchiveImpl<?>>Get corresponding implementation class for archive update operations.booleanReturn whether this archive type supports creation/update operationsbooleanReturntrue, if the archive format is capable of compressing or storing multiple files within the archive.toString()static ArchiveFormatReturns the enum constant of this class with the specified name.static ArchiveFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
ZIP
Zip format. -
TAR
Tar format. -
SPLIT
Split format. -
RAR
Rar format. -
RAR5
Rar5 format. -
LZMA
Lzma format. -
ISO
Iso format. -
HFS
Hfs format. -
GZIP
Gzip format. -
CPIO
Cpio format. -
BZIP2
BZip2 format. -
SEVEN_ZIP
7z format. -
Z
Z format. -
XZ
Xz format. Single-file stream archive (like GZip/BZip2/Lzma). Supports extraction and compression; stores no filename inside the archive. -
ARJ
Arj format. -
CAB
Cab format. -
LZH
Lzh format. -
CHM
Chm format. -
NSIS
Nsis format. -
AR
ar, a, deb, lib -
RPM
Rpm format. -
UDF
Udf format. -
WIM
Wim format. -
XAR
Xar format. -
FAT
FAT - (vfat file system); -
NTFS
NTFS - (NTFS file system);
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
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
Get corresponding implementation class for archive update operations.- Returns:
- the
IOutArchiveimplementation class
-
supportMultipleFiles
public boolean supportMultipleFiles()Returntrue, if the archive format is capable of compressing or storing multiple files within the archive.- Returns:
true- support multiple files,falsesupport single file or stream
-
toString
- Overrides:
toStringin classEnum<ArchiveFormat>
-