- java.lang.Object
-
- kala.compress.harmony.pack200.BandSet
-
- kala.compress.harmony.pack200.FileBands
-
public class FileBands extends BandSet
Bands containing information about files in the pack200 archive and the file contents for non-class-files. Corresponds to thefile_bandsset of bands described in the specification.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class kala.compress.harmony.pack200.BandSet
BandSet.BandAnalysisResults, BandSet.BandData
-
-
Field Summary
Fields Modifier and Type Field Description private CpBandscpBandsprivate byte[][]file_bitsprivate int[]file_modtimeprivate int[]file_nameprivate int[]file_optionsprivate long[]file_sizeprivate java.util.List<Archive.PackingFile>fileListprivate CPUTF8[]fileNameprivate PackingOptionsoptions-
Fields inherited from class kala.compress.harmony.pack200.BandSet
effort, segmentHeader
-
-
Constructor Summary
Constructors Constructor Description FileBands(CpBands cpBands, SegmentHeader segmentHeader, PackingOptions options, Archive.SegmentUnit segmentUnit, int effort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinaliseBands()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.private int[]flatten(byte[][] bytes)voidpack(java.io.OutputStream out)Write the packed set of bands to the given output stream-
Methods inherited from class kala.compress.harmony.pack200.BandSet
cpEntryListToArray, cpEntryOrNullListToArray, encodeBandInt, encodeFlags, encodeFlags, encodeScalar, encodeScalar, integerListToArray, longListToArray
-
-
-
-
Field Detail
-
fileName
private final CPUTF8[] 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
private final java.util.List<Archive.PackingFile> fileList
-
options
private final PackingOptions options
-
cpBands
private final CpBands cpBands
-
-
Constructor Detail
-
FileBands
public FileBands(CpBands cpBands, SegmentHeader segmentHeader, PackingOptions options, Archive.SegmentUnit segmentUnit, int effort)
-
-
Method Detail
-
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
public void pack(java.io.OutputStream out) throws java.io.IOException, Pack200ExceptionDescription copied from class:BandSetWrite the packed set of bands to the given output stream- Specified by:
packin classBandSet- Parameters:
out- TODO- Throws:
java.io.IOException- If an I/O error occurs.Pack200Exception- TODO
-
-