Class 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 Detail

      • fileBits

        private byte[][] fileBits
      • fileModtime

        private int[] fileModtime
      • fileName

        private java.lang.String[] fileName
      • fileOptions

        private int[] fileOptions
      • fileSize

        private long[] fileSize
      • cpUTF8

        private final java.lang.String[] cpUTF8
      • in

        private java.io.InputStream in
    • Constructor Detail

      • FileBands

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

      • getFileBits

        public byte[][] getFileBits()
      • getFileModtime

        public int[] getFileModtime()
      • getFileName

        public java.lang.String[] getFileName()
      • getFileOptions

        public int[] getFileOptions()
      • getFileSize

        public long[] getFileSize()
      • processFileBits

        public void processFileBits()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • unpack

        public void unpack()
        Specified by:
        unpack in class BandSet