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 java.lang.Object implements NewAttributeBands.AttributeLayoutElement
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<NewAttributeBands.LayoutElement>bodyprivate intcountprivate intindexprivate booleanisBackwardsCallableprivate booleanisFirstCallable
-
Constructor Summary
Constructors Constructor Description Callable(java.util.List<NewAttributeBands.LayoutElement> body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCount(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.java.util.List<NewAttributeBands.LayoutElement>getBody()booleanisBackwardsCallable()voidreadBands(java.io.InputStream in, int count)Read the bands associated with this part of the layout.voidsetBackwardsCallable()Tells this Callable that it is a backwards callablevoidsetFirstCallable(boolean isFirstCallable)
-
-
-
Field Detail
-
body
private final java.util.List<NewAttributeBands.LayoutElement> body
-
isBackwardsCallable
private boolean isBackwardsCallable
-
isFirstCallable
private boolean isFirstCallable
-
count
private int count
-
index
private int index
-
-
Constructor Detail
-
Callable
public Callable(java.util.List<NewAttributeBands.LayoutElement> body)
-
-
Method Detail
-
addCount
public void addCount(int count)
Adds the count of a call to this callable (ie the number of calls)- Parameters:
count- TODO
-
addNextToAttribute
public void addNextToAttribute(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.- Parameters:
attribute- TODO
-
addToAttribute
public void addToAttribute(int n, NewAttribute attribute)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
public java.util.List<NewAttributeBands.LayoutElement> getBody()
-
isBackwardsCallable
public boolean isBackwardsCallable()
-
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.- Specified by:
readBandsin interfaceNewAttributeBands.AttributeLayoutElement- Parameters:
in- TODOcount- TODO- Throws:
Pack200Exception- Bad archive.java.io.IOException- If an I/O error occurs.
-
setBackwardsCallable
public void setBackwardsCallable()
Tells this Callable that it is a backwards callable
-
setFirstCallable
public void setFirstCallable(boolean isFirstCallable)
-
-