org.apache.commons.compress.harmony.unpack200

## Class NewAttributeBands.Callable

- java.lang.Object
- - org.apache.commons.compress.harmony.unpack200.NewAttributeBands.Callable

- Enclosing class:
    NewAttributeBands

      public static class NewAttributeBands.Callable
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Callable(List body)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addCount(int count)` Adds the count of a call to this callable (ie the number of calls)
    `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.
    `void` | `addToAttribute(int n, NewAttribute attribute)` Adds the band data for this element at the given index to the attribute.
    `List` | `getBody()`
    `boolean` | `isBackwardsCallable()`
    `void` | `readBands(InputStream in, int count)` Read the bands associated with this part of the layout.
    `void` | `setBackwardsCallable()` Tells this Callable that it is a backwards callable
    `void` | `setFirstCallable(boolean isFirstCallable)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Callable

          public Callable(List body)
                   throws IOException

      Throws:
        `IOException`

  - ### Method Detail

    - #### 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

    - #### addCount

          public void addCount(int count)

      Adds the count of a call to this callable (ie the number of calls)
      Parameters:
        `count` - TODO

    - #### readBands

          public void readBands(InputStream in,
                                int count)
                         throws IOException,
                                Pack200Exception

      Read the bands associated with this part of the layout.
      Parameters:
        `in` - TODO
        `count` - TODO
      Throws:
        `IOException` - If an I/O error occurs.
        `Pack200Exception` - Bad archive.

    - #### addToAttribute

          public void addToAttribute(int n,
                                     NewAttribute attribute)

      Adds 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.

    - #### isBackwardsCallable

          public boolean isBackwardsCallable()

    - #### setBackwardsCallable

          public void setBackwardsCallable()

      Tells this Callable that it is a backwards callable

    - #### setFirstCallable

          public void setFirstCallable(boolean isFirstCallable)

    - #### getBody

          public List getBody()

Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.