Package kala.compress.harmony.unpack200
Class NewAttributeBands.UnionCase
- java.lang.Object
-
- kala.compress.harmony.unpack200.NewAttributeBands.LayoutElement
-
- kala.compress.harmony.unpack200.NewAttributeBands.UnionCase
-
- All Implemented Interfaces:
NewAttributeBands.AttributeLayoutElement
- Enclosing class:
- NewAttributeBands
public class NewAttributeBands.UnionCase extends NewAttributeBands.LayoutElement
A Union case
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<NewAttributeBands.LayoutElement>bodyprivate java.util.List<java.lang.Integer>tags
-
Constructor Summary
Constructors Constructor Description UnionCase(java.util.List<java.lang.Integer> tags)UnionCase(java.util.List<java.lang.Integer> tags, java.util.List<NewAttributeBands.LayoutElement> body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToAttribute(int index, NewAttribute attribute)Adds the band data for this element at the given index to the attribute.java.util.List<NewAttributeBands.LayoutElement>getBody()booleanhasTag(int i)booleanhasTag(long l)voidreadBands(java.io.InputStream in, int count)Read the bands associated with this part of the layout.-
Methods inherited from class kala.compress.harmony.unpack200.NewAttributeBands.LayoutElement
getLength
-
-
-
-
Field Detail
-
body
private java.util.List<NewAttributeBands.LayoutElement> body
-
tags
private final java.util.List<java.lang.Integer> tags
-
-
Constructor Detail
-
UnionCase
public UnionCase(java.util.List<java.lang.Integer> tags)
-
UnionCase
public UnionCase(java.util.List<java.lang.Integer> tags, java.util.List<NewAttributeBands.LayoutElement> body)
-
-
Method Detail
-
addToAttribute
public void addToAttribute(int index, NewAttribute attribute)Description copied from interface:NewAttributeBands.AttributeLayoutElementAdds the band data for this element at the given index to the attribute.- Parameters:
index- Index position to add the attribute.attribute- The attribute to add.
-
getBody
public java.util.List<NewAttributeBands.LayoutElement> getBody()
-
hasTag
public boolean hasTag(int i)
-
hasTag
public boolean hasTag(long l)
-
readBands
public void readBands(java.io.InputStream in, int count) throws java.io.IOException, Pack200ExceptionDescription copied from interface:NewAttributeBands.AttributeLayoutElementRead the bands associated with this part of the layout.- Parameters:
in- TODOcount- TODO- Throws:
Pack200Exception- Bad archive.java.io.IOException- If an I/O error occurs.
-
-