Top Description Fields Constructors Methods
org.apache.commons.compress.harmony.pack200

public Class FileBands

extends BandSet
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.util.Arrays, .HashSet, .List, .Set, .TimeZone, org.apache.commons.compress.harmony.pack200.Archive.PackingFile, .Archive.SegmentUnit, org.apache.commons.compress.utils.ExactMath, org.objectweb.asm.ClassReader

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.

Field Summary

Modifier and TypeField and Description
private final CpBands
private final byte[][]
private final int[]
private int[]
private final int[]
private final long[]
private final List<Archive.PackingFile>
private final CPUTF8[]
private final PackingOptions
Inherited from org.apache.commons.compress.harmony.pack200.BandSet:
effortsegmentHeader

Constructor Summary

AccessConstructor and Description
public
FileBands(final CpBands cpBands, final SegmentHeader segmentHeader, final PackingOptions options, final Archive.SegmentUnit segmentUnit, final int effort)

Method Summary

Modifier and TypeMethod and Description
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.

private int[]
flatten(final byte[][] bytes)

public void
pack(final OutputStream
TODO
out
)

Implements abstract org.apache.commons.compress.harmony.pack200.BandSet.pack.

Write the packed set of bands to the given output stream
Inherited from org.apache.commons.compress.harmony.pack200.BandSet:
cpEntryListToArraycpEntryOrNullListToArrayencodeBandIntencodeFlagsencodeFlagsencodeScalarencodeScalarintegerListToArraylongListToArray

Field Detail

cpBandsback to summary
private final CpBands cpBands
file_bitsback to summary
private final byte[][] file_bits
file_modtimeback to summary
private final int[] file_modtime
file_nameback to summary
private int[] file_name
file_optionsback to summary
private final int[] file_options
file_sizeback to summary
private final long[] file_size
fileListback to summary
private final List<Archive.PackingFile> fileList
fileNameback to summary
private final CPUTF8[] fileName
optionsback to summary
private final PackingOptions options

Constructor Detail

FileBandsback to summary
public FileBands(final CpBands cpBands, final SegmentHeader segmentHeader, final PackingOptions options, final Archive.SegmentUnit segmentUnit, final int effort)

Method Detail

finaliseBandsback to summary
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.

flattenback to summary
private int[] flatten(final byte[][] bytes)
packback to summary
public void pack(final OutputStream out) throws IOException, Pack200Exception

Implements abstract org.apache.commons.compress.harmony.pack200.BandSet.pack.

Doc from org.apache.commons.compress.harmony.pack200.BandSet.pack.

Write the packed set of bands to the given output stream

Parameters
out:OutputStream

TODO

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs.
Pack200Exception:
TODO