Class Folder
- java.lang.Object
-
- org.apache.commons.compress.archivers.sevenz.Folder
-
final class Folder extends java.lang.ObjectThe unit of solid compression.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BindPair[]bindPairsMapping between input and output streams.(package private) Coder[]codersList of coders used in this folder, e.g.(package private) longcrcThe CRC, if present.(package private) static Folder[]EMPTY_FOLDER_ARRAY(package private) booleanhasCrcWhether the folder has a CRC.(package private) intnumUnpackSubStreamsThe number of unpack substreams, product of the number of output streams and the number of non-empty files in this folder.(package private) long[]packedStreamsIndices of input streams, one per input stream not listed in bindPairs.(package private) longtotalInputStreamsTotal number of input streams across all coders.(package private) longtotalOutputStreamsTotal number of output streams across all coders.(package private) long[]unpackSizesUnpack sizes, per each output stream.
-
Constructor Summary
Constructors Constructor Description Folder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intfindBindPairForInStream(int index)(package private) intfindBindPairForOutStream(int index)(package private) java.lang.Iterable<Coder>getOrderedCoders()Sorts Coders using bind pairs.(package private) longgetUnpackSize()(package private) longgetUnpackSizeForCoder(Coder coder)java.lang.StringtoString()
-
-
-
Field Detail
-
EMPTY_FOLDER_ARRAY
static final Folder[] EMPTY_FOLDER_ARRAY
-
coders
Coder[] coders
List of coders used in this folder, e.g. one for compression, one for encryption.
-
totalInputStreams
long totalInputStreams
Total number of input streams across all coders. This field is currently unused but technically part of the 7z API.
-
totalOutputStreams
long totalOutputStreams
Total number of output streams across all coders.
-
bindPairs
BindPair[] bindPairs
Mapping between input and output streams.
-
packedStreams
long[] packedStreams
Indices of input streams, one per input stream not listed in bindPairs.
-
unpackSizes
long[] unpackSizes
Unpack sizes, per each output stream.
-
hasCrc
boolean hasCrc
Whether the folder has a CRC.
-
crc
long crc
The CRC, if present.
-
numUnpackSubStreams
int numUnpackSubStreams
The number of unpack substreams, product of the number of output streams and the number of non-empty files in this folder.
-
-
Method Detail
-
findBindPairForInStream
int findBindPairForInStream(int index)
-
findBindPairForOutStream
int findBindPairForOutStream(int index)
-
getOrderedCoders
java.lang.Iterable<Coder> getOrderedCoders() throws java.io.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.
- Throws:
java.io.IOException
-
getUnpackSize
long getUnpackSize()
-
getUnpackSizeForCoder
long getUnpackSizeForCoder(Coder coder)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-