Class FileBands
java.lang.Object
org.apache.commons.compress.harmony.pack200.BandSet
org.apache.commons.compress.harmony.pack200.FileBands
Bands containing information about files in the pack200 archive and the file contents for non-class-files. Corresponds to the
file_bands set of bands
described in the specification.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.compress.harmony.pack200.BandSet
BandSet.BandAnalysisResults, BandSet.BandData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CpBandsprivate final byte[][]private final int[]private int[]private final int[]private final long[]private final List<Archive.PackingFile>private final CPUTF8[]private final PackingOptionsFields inherited from class org.apache.commons.compress.harmony.pack200.BandSet
effort, segmentHeader -
Constructor Summary
ConstructorsConstructorDescriptionFileBands(CpBands cpBands, SegmentHeader segmentHeader, PackingOptions options, Archive.SegmentUnit segmentUnit, int effort) -
Method Summary
Modifier and TypeMethodDescriptionvoidAll input classes for the segment have now been read in, so this method is called so that this class can calculate/complete anything it could not do while classes were being read.private int[]flatten(byte[][] bytes) voidpack(OutputStream out) Writes the packed set of bands to the given output stream.Methods inherited from class org.apache.commons.compress.harmony.pack200.BandSet
cpEntryListToArray, cpEntryOrNullListToArray, encodeBandInt, encodeFlags, encodeFlags, encodeScalar, encodeScalar, integerListToArray, longListToArray
-
Field Details
-
fileName
-
file_name
private int[] file_name -
file_modtime
private final int[] file_modtime -
file_size
private final long[] file_size -
file_options
private final int[] file_options -
file_bits
private final byte[][] file_bits -
fileList
-
options
-
cpBands
-
-
Constructor Details
-
FileBands
public FileBands(CpBands cpBands, SegmentHeader segmentHeader, PackingOptions options, Archive.SegmentUnit segmentUnit, int effort)
-
-
Method Details
-
finaliseBands
public void finaliseBands()All input classes for the segment have now been read in, so this method is called so that this class can calculate/complete anything it could not do while classes were being read. -
flatten
private int[] flatten(byte[][] bytes) -
pack
Description copied from class:BandSetWrites the packed set of bands to the given output stream.- Specified by:
packin classBandSet- Parameters:
out- TODO- Throws:
IOException- If an I/O error occurs.Pack200Exception- If a Pack200 semantic error occurs.
-