java.lang.Object
org.apache.commons.compress.harmony.unpack200.BandSet
org.apache.commons.compress.harmony.unpack200.FileBands

public class FileBands extends BandSet
Parses the file band headers (not including the actual bits themselves). At the end of this parse call, the input stream will be positioned at the start of the file_bits themselves, and there will be Sum(file_size) bits remaining in the stream with BYTE1 compression. A decent implementation will probably just stream the bytes out to the reconstituted Jar rather than caching them.
  • Field Details

    • fileBits

      private byte[][] fileBits
    • fileModtime

      private int[] fileModtime
    • fileName

      private String[] fileName
    • fileOptions

      private int[] fileOptions
    • fileSize

      private long[] fileSize
    • cpUTF8

      private final String[] cpUTF8
    • in

      private InputStream in
  • Constructor Details

    • FileBands

      public FileBands(Segment segment)
      Parameters:
      segment - TODO
  • Method Details

    • getFileBits

      public byte[][] getFileBits()
    • getFileModtime

      public int[] getFileModtime()
    • getFileName

      public String[] getFileName()
    • getFileOptions

      public int[] getFileOptions()
    • getFileSize

      public long[] getFileSize()
    • processFileBits

      public void processFileBits() throws IOException
      Throws:
      IOException
    • read

      public void read(InputStream in) throws IOException, Pack200Exception
      Description copied from class: BandSet
      Reads the input stream.
      Specified by:
      read in class BandSet
      Parameters:
      in - the stream to read.
      Throws:
      IOException - if a problem occurs during reading from the underlying stream.
      Pack200Exception - if a problem occurs with an unexpected value or unsupported Codec.
    • unpack

      public void unpack()
      Description copied from class: BandSet
      Unpacks this instance.
      Specified by:
      unpack in class BandSet