Class NewAttributeBands
java.lang.Object
org.apache.commons.compress.harmony.unpack200.BandSet
org.apache.commons.compress.harmony.unpack200.NewAttributeBands
Sets of bands relating to a non-predefined attribute
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic classclassclassConstant Pool ReferenceclassA replication is an array of layout elements, with an associated countclassA Union is a type of layout element where the tag value acts as a selector for one of the union casesclassA Union case -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<org.apache.commons.compress.harmony.unpack200.NewAttributeBands.AttributeLayoutElement> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns theBHSDCodecthat should be used for the given layout element.parseAttributes(InputStream in, int occurrenceCount) Parse the bands relating to this AttributeLayout and return the correct class file attributes as a List ofAttribute.voidread(InputStream in) voidsetBackwardsCalls(int[] backwardsCalls) Once the attribute bands have been read the callables can be informed about the number of times each is subject to a backwards call.voidunpack()Methods inherited from class org.apache.commons.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
-
attributeLayoutElements
protected List<org.apache.commons.compress.harmony.unpack200.NewAttributeBands.AttributeLayoutElement> attributeLayoutElements
-
-
Constructor Details
-
NewAttributeBands
- Throws:
IOException
-
-
Method Details
-
getBackwardsCallCount
-
getCodec
Returns theBHSDCodecthat should be used for the given layout element.- Parameters:
layoutElement- TODO- Returns:
- the
BHSDCodecthat should be used for the given layout element.
-
parseAttributes
public List<Attribute> parseAttributes(InputStream in, int occurrenceCount) throws IOException, Pack200Exception Parse the bands relating to this AttributeLayout and return the correct class file attributes as a List ofAttribute.- Parameters:
in- parse source.occurrenceCount- TODO- Returns:
- Class file attributes as a List of
Attribute. - Throws:
IOException- If an I/O error occurs.Pack200Exception- TODO
-
read
- Specified by:
readin classBandSet- Throws:
IOExceptionPack200Exception
-
setBackwardsCalls
Once the attribute bands have been read the callables can be informed about the number of times each is subject to a backwards call. This method is used to set this information.- Parameters:
backwardsCalls- one int for each backwards callable, which contains the number of times that callable is subject to a backwards call.- Throws:
IOException- If an I/O error occurs.
-
unpack
- Specified by:
unpackin classBandSet- Throws:
IOExceptionPack200Exception
-