- java.lang.Object
-
- kala.compress.harmony.unpack200.BandSet
-
- kala.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 Summary
Fields Modifier and Type Field Description private java.lang.String[]cpUTF8private byte[][]fileBitsprivate int[]fileModtimeprivate java.lang.String[]fileNameprivate int[]fileOptionsprivate long[]fileSizeprivate java.io.InputStreamin
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[][]getFileBits()int[]getFileModtime()java.lang.String[]getFileName()int[]getFileOptions()long[]getFileSize()voidprocessFileBits()voidread(java.io.InputStream in)voidunpack()-
Methods inherited from class kala.compress.harmony.unpack200.BandSet
decodeBandInt, decodeBandInt, getReferences, getReferences, parseCPClassReferences, parseCPDescriptorReferences, parseCPDoubleReferences, parseCPFieldRefReferences, parseCPFloatReferences, parseCPInterfaceMethodRefReferences, parseCPIntReferences, parseCPLongReferences, parseCPMethodRefReferences, parseCPSignatureReferences, parseCPSignatureReferences, parseCPStringReferences, parseCPUTF8References, parseCPUTF8References, parseFlags, parseFlags, parseFlags, parseFlags, parseReferences, parseReferences, unpack
-
-
-
-
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
-
read
public void read(java.io.InputStream in) throws java.io.IOException, Pack200Exception- Specified by:
readin classBandSet- Throws:
java.io.IOExceptionPack200Exception
-
-