Modifier and Type | Method and Description |
---|---|
int |
PopulationCodec.decode(java.io.InputStream in) |
int |
RunCodec.decode(java.io.InputStream in) |
abstract int |
Codec.decode(java.io.InputStream in)
Decode a sequence of bytes from the given input stream, returning the value as a long.
|
int |
BHSDCodec.decode(java.io.InputStream in) |
int |
PopulationCodec.decode(java.io.InputStream in,
long last) |
int |
RunCodec.decode(java.io.InputStream in,
long last) |
abstract int |
Codec.decode(java.io.InputStream in,
long last)
Decode a sequence of bytes from the given input stream, returning the value as a long.
|
int |
BHSDCodec.decode(java.io.InputStream in,
long last) |
int[] |
PopulationCodec.decodeInts(int n,
java.io.InputStream in) |
int[] |
RunCodec.decodeInts(int n,
java.io.InputStream in) |
int[] |
Codec.decodeInts(int n,
java.io.InputStream in)
Decodes a sequence of
n values from in . |
int[] |
BHSDCodec.decodeInts(int n,
java.io.InputStream in) |
int[] |
Codec.decodeInts(int n,
java.io.InputStream in,
int firstValue)
Decodes a sequence of
n values from in . |
int[] |
BHSDCodec.decodeInts(int n,
java.io.InputStream in,
int firstValue) |
byte[] |
PopulationCodec.encode(int value) |
byte[] |
RunCodec.encode(int value) |
abstract byte[] |
Codec.encode(int value)
Encode a single value into a sequence of bytes.
|
byte[] |
BHSDCodec.encode(int value) |
byte[] |
Codec.encode(int[] ints)
Encode a sequence of integers into a byte array
|
byte[] |
PopulationCodec.encode(int[] favoured,
int[] tokens,
int[] unfavoured) |
byte[] |
PopulationCodec.encode(int value,
int last) |
byte[] |
RunCodec.encode(int value,
int last) |
abstract byte[] |
Codec.encode(int value,
int last)
Encode a single value into a sequence of bytes.
|
byte[] |
BHSDCodec.encode(int value,
int last) |
byte[] |
BandSet.encodeBandInt(java.lang.String name,
int[] ints,
BHSDCodec defaultCodec)
Encode a band of integers.
|
protected byte[] |
BandSet.encodeFlags(java.lang.String name,
long[][] flags,
BHSDCodec loCodec,
BHSDCodec hiCodec,
boolean haveHiFlags) |
protected byte[] |
BandSet.encodeFlags(java.lang.String name,
long[] flags,
BHSDCodec loCodec,
BHSDCodec hiCodec,
boolean haveHiFlags)
Encode a band of longs (values are split into their high and low 32 bits and then encoded as two separate bands
|
byte[] |
BandSet.encodeScalar(int[] band,
BHSDCodec codec)
Encode a band without considering other Codecs
|
byte[] |
BandSet.encodeScalar(int value,
BHSDCodec codec)
Encode a single value with the given Codec
|
static Codec |
CodecEncoding.getCodec(int value,
java.io.InputStream in,
Codec defaultCodec)
Returns the codec specified by the given value byte and optional byte header.
|
void |
Archive.pack()
Pack the archive
|
void |
Segment.pack(org.apache.commons.compress.harmony.pack200.Archive.SegmentUnit segmentUnit,
java.io.OutputStream out,
PackingOptions options)
The main method on Segment.
|
void |
CpBands.pack(java.io.OutputStream out) |
void |
ClassBands.pack(java.io.OutputStream out) |
abstract void |
BandSet.pack(java.io.OutputStream out)
Write the packed set of bands to the given output stream
|
void |
BcBands.pack(java.io.OutputStream out) |
void |
MetadataBandGroup.pack(java.io.OutputStream out) |
void |
FileBands.pack(java.io.OutputStream out) |
void |
NewAttributeBands.pack(java.io.OutputStream out) |
void |
NewAttributeBands.AttributeLayoutElement.pack(java.io.OutputStream out) |
void |
NewAttributeBands.Integral.pack(java.io.OutputStream out) |
void |
NewAttributeBands.Replication.pack(java.io.OutputStream out) |
void |
NewAttributeBands.Union.pack(java.io.OutputStream out) |
void |
NewAttributeBands.Reference.pack(java.io.OutputStream out) |
void |
NewAttributeBands.Callable.pack(java.io.OutputStream out) |
void |
NewAttributeBands.UnionCase.pack(java.io.OutputStream out) |
void |
SegmentHeader.pack(java.io.OutputStream out)
Encode and write the SegmentHeader bands to the OutputStream
|
void |
IcBands.pack(java.io.OutputStream out) |
void |
AttributeDefinitionBands.pack(java.io.OutputStream out) |
Constructor and Description |
---|
RunCodec(int k,
Codec aCodec,
Codec bCodec) |
Modifier and Type | Method and Description |
---|---|
void |
AttributeLayoutMap.checkMap()
The map should not contain the same layout and name combination more than once for each context.
|
int[] |
BandSet.decodeBandInt(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count)
Decode a band and return an array of
int values |
int[][] |
BandSet.decodeBandInt(java.lang.String name,
java.io.InputStream in,
BHSDCodec defaultCodec,
int[] counts)
Decode a band and return an array of
int[] values |
AttributeLayout |
AttributeLayoutMap.getAttributeLayout(int index,
int context) |
AttributeLayout |
AttributeLayoutMap.getAttributeLayout(java.lang.String name,
int context) |
long[] |
ClassBands.getClassFlags() |
ConstantPoolEntry |
SegmentConstantPool.getClassSpecificPoolEntry(int cp,
long desiredIndex,
java.lang.String desiredClassName)
Subset the constant pool of the specified type to be just that which has the specified class name.
|
ConstantPoolEntry |
SegmentConstantPool.getConstantPoolEntry(int cp,
long value) |
long[][] |
ClassBands.getFieldFlags() |
ConstantPoolEntry |
SegmentConstantPool.getInitMethodPoolEntry(int cp,
long value,
java.lang.String desiredClassName)
Answer the init method for the specified class.
|
long[][] |
ClassBands.getMethodFlags() |
ClassFileEntry |
SegmentConstantPool.getValue(int cp,
long value) |
ClassFileEntry |
AttributeLayout.getValue(long value,
SegmentConstantPool pool) |
ClassFileEntry |
AttributeLayout.getValue(long value,
java.lang.String type,
SegmentConstantPool pool) |
java.util.List |
NewAttributeBands.parseAttributes(java.io.InputStream in,
int occurrenceCount)
Parse the bands relating to this AttributeLayout and return the correct class file attributes as a List of
Attribute . |
CPClass[] |
BandSet.parseCPClassReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count) |
CPNameAndType[] |
BandSet.parseCPDescriptorReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count) |
CPDouble[] |
BandSet.parseCPDoubleReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count) |
CPFieldRef[] |
BandSet.parseCPFieldRefReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count) |
CPFloat[] |
BandSet.parseCPFloatReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count) |
CPInterfaceMethodRef[] |
BandSet.parseCPInterfaceMethodRefReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count) |
CPInteger[] |
BandSet.parseCPIntReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count) |
CPLong[] |
BandSet.parseCPLongReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count) |
CPMethodRef[] |
BandSet.parseCPMethodRefReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count) |
CPUTF8[] |
BandSet.parseCPSignatureReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count) |
protected CPUTF8[][] |
BandSet.parseCPSignatureReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int[] counts) |
CPString[] |
BandSet.parseCPStringReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count) |
CPUTF8[] |
BandSet.parseCPUTF8References(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count) |
CPUTF8[][] |
BandSet.parseCPUTF8References(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int[] counts) |
long[][] |
BandSet.parseFlags(java.lang.String name,
java.io.InputStream in,
int[] counts,
BHSDCodec hiCodec,
BHSDCodec loCodec) |
long[][] |
BandSet.parseFlags(java.lang.String name,
java.io.InputStream in,
int[] counts,
BHSDCodec codec,
boolean hasHi) |
long[] |
BandSet.parseFlags(java.lang.String name,
java.io.InputStream in,
int count,
BHSDCodec hiCodec,
BHSDCodec loCodec) |
long[] |
BandSet.parseFlags(java.lang.String name,
java.io.InputStream in,
int count,
BHSDCodec codec,
boolean hasHi) |
java.lang.String[][] |
BandSet.parseReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int[] counts,
java.lang.String[] reference)
Parses count references from
in , using codec to decode the values as indexes
into reference (which is populated prior to this call). |
java.lang.String[] |
BandSet.parseReferences(java.lang.String name,
java.io.InputStream in,
BHSDCodec codec,
int count,
java.lang.String[] reference)
Parses count references from
in , using codec to decode the values as indexes
into reference (which is populated prior to this call). |
void |
FileBands.processFileBits() |
void |
CpBands.read(java.io.InputStream in) |
void |
AttrDefinitionBands.read(java.io.InputStream in) |
void |
ClassBands.read(java.io.InputStream in) |
abstract void |
BandSet.read(java.io.InputStream inputStream) |
void |
BcBands.read(java.io.InputStream in) |
void |
FileBands.read(java.io.InputStream in) |
void |
NewAttributeBands.read(java.io.InputStream in) |
void |
SegmentHeader.read(java.io.InputStream in) |
void |
SegmentHeader.read(java.io.InputStream in) |
void |
IcBands.read(java.io.InputStream in) |
void |
NewAttributeBands.Integral.readBands(java.io.InputStream in,
int count) |
void |
NewAttributeBands.Replication.readBands(java.io.InputStream in,
int count) |
void |
NewAttributeBands.Union.readBands(java.io.InputStream in,
int count) |
void |
NewAttributeBands.Reference.readBands(java.io.InputStream in,
int count) |
void |
NewAttributeBands.Callable.readBands(java.io.InputStream in,
int count) |
void |
NewAttributeBands.UnionCase.readBands(java.io.InputStream in,
int count) |
void |
AttrDefinitionBands.unpack() |
abstract void |
BandSet.unpack() |
void |
BcBands.unpack() |
void |
Archive.unpack()
Unpacks the Archive from the input file to the output file
|
void |
NewAttributeBands.unpack() |
void |
IcBands.unpack() |
void |
BandSet.unpack(java.io.InputStream in) |
void |
Segment.unpack(java.io.InputStream in,
java.util.jar.JarOutputStream out)
Unpacks a packed stream (either .pack.
|
void |
Segment.writeJar(java.util.jar.JarOutputStream out)
Writes the segment to an output stream.
|
Constructor and Description |
---|
AttributeLayout(java.lang.String name,
int context,
java.lang.String layout,
int index)
Construct a default AttributeLayout (equivalent to
new AttributeLayout(name, context, layout, index, true); ) |
AttributeLayout(java.lang.String name,
int context,
java.lang.String layout,
int index,
boolean isDefault) |
AttributeLayoutMap() |
SegmentOptions(int options)
Creates a new segment options with the given integer value.
|
Modifier and Type | Method and Description |
---|---|
void |
LocalVariableTableAttribute.renumber(java.util.List byteCodeOffsets) |
void |
LocalVariableTypeTableAttribute.renumber(java.util.List byteCodeOffsets) |
void |
BCIRenumberedAttribute.renumber(java.util.List byteCodeOffsets)
In Pack200, line number tables are BCI renumbered.
|
Modifier and Type | Method and Description |
---|---|
protected void |
NewInitMethodRefForm.setNestedEntries(ByteCode byteCode,
OperandManager operandManager,
int offset) |
protected void |
InitMethodReferenceForm.setNestedEntries(ByteCode byteCode,
OperandManager operandManager,
int offset) |
protected void |
ClassRefForm.setNestedEntries(ByteCode byteCode,
OperandManager operandManager,
int offset) |
protected void |
SingleByteReferenceForm.setNestedEntries(ByteCode byteCode,
OperandManager operandManager,
int offset) |
protected void |
ClassSpecificReferenceForm.setNestedEntries(ByteCode byteCode,
OperandManager operandManager,
int offset) |
protected void |
StringRefForm.setNestedEntries(ByteCode byteCode,
OperandManager operandManager,
int offset) |
protected void |
ReferenceForm.setNestedEntries(ByteCode byteCode,
OperandManager operandManager,
int offset) |
protected void |
NarrowClassRefForm.setNestedEntries(ByteCode byteCode,
OperandManager operandManager,
int offset) |