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 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
FieldsModifier and TypeFieldDescriptionprotected List
<org.apache.commons.compress.harmony.unpack200.NewAttributeBands.AttributeLayoutElement> -
Constructor Summary
Constructors -
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) Reads the input stream.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()
Unpacks this instance.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
- If a Pack200 semantic error occurs.
-
read
Description copied from class:BandSet
Reads the input stream.- Specified by:
read
in classBandSet
- Parameters:
in
- the stream to read.- Throws:
IOException
- if a problem occurs during reading from the underlying stream.Pack200Exception
- if a problem occurs with an unexpected value or unsupported Codec.
-
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
Description copied from class:BandSet
Unpacks this instance.- Specified by:
unpack
in classBandSet
- Throws:
IOException
- if a problem occurs during reading from the underlying stream.Pack200Exception
- if a problem occurs with an unexpected value or unsupported Codec.
-