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
Modifier and TypeClassDescriptionclass
static class
class
class
Constant Pool Referenceclass
A replication is an array of layout elements, with an associated countclass
A Union is a type of layout element where the tag value acts as a selector for one of the union casesclass
A Union case -
Field Summary
Modifier and TypeFieldDescriptionprotected List<org.apache.commons.compress.harmony.unpack200.NewAttributeBands.AttributeLayoutElement>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns theBHSDCodec
that 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
.void
read
(InputStream in) void
setBackwardsCalls
(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.void
unpack()
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 theBHSDCodec
that should be used for the given layout element.- Parameters:
layoutElement
- TODO- Returns:
- the
BHSDCodec
that 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:
read
in classBandSet
- Throws:
IOException
Pack200Exception
-
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:
unpack
in classBandSet
- Throws:
IOException
Pack200Exception
-