Package kala.compress.harmony.unpack200
Class NewAttributeBands.Replication
- java.lang.Object
-
- kala.compress.harmony.unpack200.NewAttributeBands.LayoutElement
-
- kala.compress.harmony.unpack200.NewAttributeBands.Replication
-
- All Implemented Interfaces:
NewAttributeBands.AttributeLayoutElement
- Enclosing class:
- NewAttributeBands
public class NewAttributeBands.Replication extends NewAttributeBands.LayoutElement
A replication is an array of layout elements, with an associated count
-
-
Field Summary
Fields Modifier and Type Field Description private NewAttributeBands.IntegralcountElementprivate java.util.List<NewAttributeBands.LayoutElement>layoutElements
-
Constructor Summary
Constructors Constructor Description Replication(java.lang.String tag, java.lang.String contents)
-
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.NewAttributeBands.IntegralgetCountElement()java.util.List<NewAttributeBands.LayoutElement>getLayoutElements()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
-
countElement
private final NewAttributeBands.Integral countElement
-
layoutElements
private final java.util.List<NewAttributeBands.LayoutElement> layoutElements
-
-
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.
-
getCountElement
public NewAttributeBands.Integral getCountElement()
-
getLayoutElements
public java.util.List<NewAttributeBands.LayoutElement> getLayoutElements()
-
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.
-
-