Package kala.compress.harmony.unpack200
Class NewAttributeBands.Callable
java.lang.Object
kala.compress.harmony.unpack200.NewAttributeBands.Callable
- All Implemented Interfaces:
NewAttributeBands.AttributeLayoutElement
- Enclosing class:
NewAttributeBands
public static class NewAttributeBands.Callable
extends Object
implements NewAttributeBands.AttributeLayoutElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<NewAttributeBands.LayoutElement> private intprivate intprivate booleanprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCount(int count) Adds the count of a call to this callable (ie the number of calls)voidaddNextToAttribute(NewAttribute attribute) Used by calls when adding band contents to attributes, so they don't have to keep track of the internal index of the callable.voidaddToAttribute(int n, NewAttribute attribute) Adds the band data for this element at the given index to the attribute.getBody()booleanvoidreadBands(InputStream in, int count) Read the bands associated with this part of the layout.voidTells this Callable that it is a backwards callablevoidsetFirstCallable(boolean isFirstCallable)
-
Field Details
-
body
-
isBackwardsCallable
private boolean isBackwardsCallable -
isFirstCallable
private boolean isFirstCallable -
count
private int count -
index
private int index
-
-
Constructor Details
-
Callable
-
-
Method Details
-
addCount
public void addCount(int count) Adds the count of a call to this callable (ie the number of calls)- Parameters:
count- TODO
-
addNextToAttribute
Used by calls when adding band contents to attributes, so they don't have to keep track of the internal index of the callable.- Parameters:
attribute- TODO
-
addToAttribute
Description copied from interface:NewAttributeBands.AttributeLayoutElementAdds the band data for this element at the given index to the attribute.- Specified by:
addToAttributein interfaceNewAttributeBands.AttributeLayoutElement- Parameters:
n- Index position to add the attribute.attribute- The attribute to add.
-
getBody
-
isBackwardsCallable
public boolean isBackwardsCallable() -
readBands
Description copied from interface:NewAttributeBands.AttributeLayoutElementRead the bands associated with this part of the layout.- Specified by:
readBandsin interfaceNewAttributeBands.AttributeLayoutElement- Parameters:
in- TODOcount- TODO- Throws:
IOException- If an I/O error occurs.Pack200Exception- Bad archive.
-
setBackwardsCallable
public void setBackwardsCallable()Tells this Callable that it is a backwards callable -
setFirstCallable
public void setFirstCallable(boolean isFirstCallable)
-