Class Folder
java.lang.Object
org.apache.commons.compress.archivers.sevenz.Folder
The unit of solid compression.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BindPair[]
Mapping between input and output streams.(package private) Coder[]
List of coders used in this folder, e.g.(package private) long
The CRC, if present.(package private) static final Folder[]
(package private) boolean
Whether the folder has a CRC.(package private) int
The number of unpack substreams, product of the number of output streams and the number of non-empty files in this folder.(package private) long[]
Indices of input streams, one per input stream not listed in bindPairs.(package private) long
Total number of input streams across all coders.(package private) long
Total number of output streams across all coders.(package private) long[]
Unpack sizes, per each output stream. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
findBindPairForInStream
(int index) (package private) int
findBindPairForOutStream
(int index) Sorts Coders using bind pairs.(package private) long
(package private) long
getUnpackSizeForCoder
(Coder coder) toString()
-
Field Details
-
EMPTY_FOLDER_ARRAY
-
coders
Coder[] codersList of coders used in this folder, e.g. one for compression, one for encryption. -
totalInputStreams
long totalInputStreamsTotal number of input streams across all coders. This field is currently unused but technically part of the 7z API. -
totalOutputStreams
long totalOutputStreamsTotal number of output streams across all coders. -
bindPairs
BindPair[] bindPairsMapping between input and output streams. -
packedStreams
long[] packedStreamsIndices of input streams, one per input stream not listed in bindPairs. -
unpackSizes
long[] unpackSizesUnpack sizes, per each output stream. -
hasCrc
boolean hasCrcWhether the folder has a CRC. -
crc
long crcThe CRC, if present. -
numUnpackSubStreams
int numUnpackSubStreamsThe number of unpack substreams, product of the number of output streams and the number of non-empty files in this folder.
-
-
Constructor Details
-
Folder
Folder()
-
-
Method Details
-
findBindPairForInStream
int findBindPairForInStream(int index) -
findBindPairForOutStream
int findBindPairForOutStream(int index) -
getOrderedCoders
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.
- Throws:
IOException
-
getUnpackSize
long getUnpackSize() -
getUnpackSizeForCoder
-
toString
-