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

pack-priv final Class Folder

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.Collections, .LinkedList

The unit of solid compression.

Field Summary

Modifier and TypeField and Description
pack-priv BindPair[]
bindPairs

Mapping between input and output streams.

pack-priv Coder[]
coders

List of coders used in this folder, e.g. one for compression, one for encryption.

pack-priv long
crc

The CRC, if present.

pack-priv static final Folder[]
pack-priv boolean
hasCrc

Whether the folder has a CRC.

pack-priv int
numUnpackSubStreams

The number of unpack substreams, product of the number of output streams and the number of non-empty files in this folder.

pack-priv long[]
packedStreams

Indices of input streams, one per input stream not listed in bindPairs.

pack-priv long
totalInputStreams

Total number of input streams across all coders.

pack-priv long
totalOutputStreams

Total number of output streams across all coders.

pack-priv long[]
unpackSizes

Unpack sizes, per each output stream.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv int
findBindPairForInStream(final int index)

pack-priv int
findBindPairForOutStream(final int index)

pack-priv Iterable<Coder>
getOrderedCoders()

Sorts Coders using bind pairs.

pack-priv long
pack-priv long
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

bindPairsback to summary
pack-priv BindPair[] bindPairs

Mapping between input and output streams.

codersback to summary
pack-priv Coder[] coders

List of coders used in this folder, e.g. one for compression, one for encryption.

crcback to summary
pack-priv long crc

The CRC, if present.

EMPTY_FOLDER_ARRAYback to summary
pack-priv static final Folder[] EMPTY_FOLDER_ARRAY
hasCrcback to summary
pack-priv boolean hasCrc

Whether the folder has a CRC.

numUnpackSubStreamsback to summary
pack-priv int numUnpackSubStreams

The number of unpack substreams, product of the number of output streams and the number of non-empty files in this folder.

packedStreamsback to summary
pack-priv long[] packedStreams

Indices of input streams, one per input stream not listed in bindPairs.

totalInputStreamsback to summary
pack-priv long totalInputStreams

Total number of input streams across all coders. This field is currently unused but technically part of the 7z API.

totalOutputStreamsback to summary
pack-priv long totalOutputStreams

Total number of output streams across all coders.

unpackSizesback to summary
pack-priv long[] unpackSizes

Unpack sizes, per each output stream.

Constructor Detail

Folderback to summary
pack-priv Folder()

Method Detail

findBindPairForInStreamback to summary
pack-priv int findBindPairForInStream(final int index)
findBindPairForOutStreamback to summary
pack-priv int findBindPairForOutStream(final int index)
getOrderedCodersback to summary
pack-priv Iterable<Coder> getOrderedCoders() throws IOException

Sorts Coders using bind pairs.

The first coder reads from the packed stream (we currently only support single input stream decoders), the second reads from the output of the first and so on.

getUnpackSizeback to summary
pack-priv long getUnpackSize()
getUnpackSizeForCoderback to summary
pack-priv long getUnpackSizeForCoder(final Coder coder)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override