Class NewAttributeBands.Union
java.lang.Object
org.apache.commons.compress.harmony.unpack200.NewAttributeBands.LayoutElement
org.apache.commons.compress.harmony.unpack200.NewAttributeBands.Union
- All Implemented Interfaces:
NewAttributeBands.AttributeLayoutElement
- Enclosing class:
- NewAttributeBands
A Union is a type of layout element where the tag value acts as a selector for one of the union cases
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]private final List<NewAttributeBands.LayoutElement>private intprivate final List<NewAttributeBands.UnionCase>private final NewAttributeBands.Integral -
Constructor Summary
ConstructorsConstructorDescriptionUnion(String tag, List<NewAttributeBands.UnionCase> unionCases, List<NewAttributeBands.LayoutElement> body) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToAttribute(int n, NewAttribute attribute) Adds the band data for this element at the given index to the attribute.voidreadBands(InputStream in, int count) Reads the bands associated with this part of the layout.Methods inherited from class org.apache.commons.compress.harmony.unpack200.NewAttributeBands.LayoutElement
getLength
-
Field Details
-
unionTag
-
unionCases
-
defaultCaseBody
-
caseCounts
private int[] caseCounts -
defaultCount
private int defaultCount
-
-
Constructor Details
-
Union
public Union(String tag, List<NewAttributeBands.UnionCase> unionCases, List<NewAttributeBands.LayoutElement> body)
-
-
Method Details
-
addToAttribute
Description copied from interface:NewAttributeBands.AttributeLayoutElementAdds the band data for this element at the given index to the attribute.- Parameters:
n- Index position to add the attribute.attribute- The attribute to add.
-
getDefaultCaseBody
-
getUnionCases
-
getUnionTag
-
readBands
Description copied from interface:NewAttributeBands.AttributeLayoutElementReads the bands associated with this part of the layout.- Parameters:
in- TODOcount- TODO- Throws:
Pack200Exception- Bad archive.IOException- If an I/O error occurs.
-