Top Description Fields Constructors Methods
org.apache.commons.compress.archivers.sevenz

public final Enum SevenZMethod

extends Enum<SevenZMethod>
Class Inheritance
Imports
java.util.Arrays

The (partially) supported compression/encryption methods used in 7z archives.

All methods with a _FILTER suffix are used as preprocessors with the goal of creating a better compression ratio with the compressor that comes next in the chain of methods. 7z will in general only allow them to be used together with a "real" compression method but Commons Compress doesn't enforce this.

The BCJ_ filters work on executable files for the given platform and convert relative addresses to absolute addresses in CALL instructions. This means they are only useful when applied to executables of the chosen platform.

Field Summary

Modifier and TypeField and Description
public static final SevenZMethod
AES256SHA256

AES encryption with a key length of 256 bit using SHA256 for hashes - only supported when reading.

public static final SevenZMethod
BCJ_ARM_FILTER

BCJ ARM platform.

public static final SevenZMethod
BCJ_ARM_THUMB_FILTER

BCJ ARM Thumb platform.

public static final SevenZMethod
BCJ_IA64_FILTER

BCJ I64 platform.

public static final SevenZMethod
BCJ_PPC_FILTER

BCJ PowerPC platform.

public static final SevenZMethod
BCJ_SPARC_FILTER

BCJ Sparc platform.

public static final SevenZMethod
BCJ_X86_FILTER

BCJ x86 platform version 1.

public static final SevenZMethod
BZIP2

BZIP2.

public static final SevenZMethod
COPY

No compression at all.

public static final SevenZMethod
DEFLATE

Deflate.

public static final SevenZMethod
DEFLATE64

Deflate64.

public static final SevenZMethod
DELTA_FILTER

Delta filter.

private final byte[]
public static final SevenZMethod
LZMA

LZMA - only supported when reading.

public static final SevenZMethod
LZMA2

LZMA2.

Constructor Summary

AccessConstructor and Description
private
SevenZMethod(final byte[] id)

Method Summary

Modifier and TypeMethod and Description
pack-priv static SevenZMethod
byId(final byte[] id)

pack-priv byte[]
public static SevenZMethod
public static SevenZMethod[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

AES256SHA256back to summary
public static final SevenZMethod AES256SHA256

AES encryption with a key length of 256 bit using SHA256 for hashes - only supported when reading.

BCJ_ARM_FILTERback to summary
public static final SevenZMethod BCJ_ARM_FILTER

BCJ ARM platform.

Since
1.8
BCJ_ARM_THUMB_FILTERback to summary
public static final SevenZMethod BCJ_ARM_THUMB_FILTER

BCJ ARM Thumb platform.

Since
1.8
BCJ_IA64_FILTERback to summary
public static final SevenZMethod BCJ_IA64_FILTER

BCJ I64 platform.

Since
1.8
BCJ_PPC_FILTERback to summary
public static final SevenZMethod BCJ_PPC_FILTER

BCJ PowerPC platform.

Since
1.8
BCJ_SPARC_FILTERback to summary
public static final SevenZMethod BCJ_SPARC_FILTER

BCJ Sparc platform.

Since
1.8
BCJ_X86_FILTERback to summary
public static final SevenZMethod BCJ_X86_FILTER

BCJ x86 platform version 1.

Since
1.8
BZIP2back to summary
public static final SevenZMethod BZIP2

BZIP2.

COPYback to summary
public static final SevenZMethod COPY

No compression at all.

DEFLATEback to summary
public static final SevenZMethod DEFLATE

Deflate.

DEFLATE64back to summary
public static final SevenZMethod DEFLATE64

Deflate64.

Since
1.16
DELTA_FILTERback to summary
public static final SevenZMethod DELTA_FILTER

Delta filter.

Since
1.8
idback to summary
private final byte[] id
LZMAback to summary
public static final SevenZMethod LZMA

LZMA - only supported when reading.

LZMA2back to summary
public static final SevenZMethod LZMA2

LZMA2.

Constructor Detail

SevenZMethodback to summary
private SevenZMethod(final byte[] id)

Method Detail

byIdback to summary
pack-priv static SevenZMethod byId(final byte[] id)
getIdback to summary
pack-priv byte[] getId()
valueOfback to summary
public static SevenZMethod valueOf(String name)
valuesback to summary
public static SevenZMethod[] values()