java.lang.Object
kala.compress.harmony.unpack200.BandSet
kala.compress.harmony.unpack200.FileBands
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
FieldsModifier and TypeFieldDescriptionprivate final String[]private byte[][]private int[]private String[]private int[]private long[]private InputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[][]int[]String[]int[]long[]voidvoidread(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
-
Field Details
-
fileBits
private byte[][] fileBits -
fileModtime
private int[] fileModtime -
fileName
-
fileOptions
private int[] fileOptions -
fileSize
private long[] fileSize -
cpUTF8
-
in
-
-
Constructor Details
-
FileBands
- Parameters:
segment- TODO
-
-
Method Details
-
getFileBits
public byte[][] getFileBits() -
getFileModtime
public int[] getFileModtime() -
getFileName
-
getFileOptions
public int[] getFileOptions() -
getFileSize
public long[] getFileSize() -
processFileBits
- Throws:
IOException
-
read
- Specified by:
readin classBandSet- Throws:
IOExceptionPack200Exception
-
unpack
public void unpack()
-