org.apache.commons.compress.harmony.unpack200

## Class AttributeLayoutMap

- java.lang.Object
- - org.apache.commons.compress.harmony.unpack200.AttributeLayoutMap

-     public class AttributeLayoutMap
      extends Object

  Stores a mapping from attribute names to their corresponding layout types. Note that names of attribute layouts and their formats are not internationalized, and should not be translated.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AttributeLayoutMap()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(AttributeLayout layout)`
    `void` | `add(AttributeLayout layout, NewAttributeBands newBands)`
    `void` | `checkMap()` The map should not contain the same layout and name combination more than once for each context.
    `NewAttributeBands` | `getAttributeBands(AttributeLayout layout)`
    `AttributeLayout` | `getAttributeLayout(int index, int context)`
    `AttributeLayout` | `getAttributeLayout(String name, int context)`

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

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

- - ### Constructor Detail

    - #### AttributeLayoutMap

          public AttributeLayoutMap()
                             throws Pack200Exception

      Throws:
        `Pack200Exception`

  - ### Method Detail

    - #### add

          public void add(AttributeLayout layout)

    - #### add

          public void add(AttributeLayout layout,
                          NewAttributeBands newBands)

    - #### getAttributeLayout

          public AttributeLayout getAttributeLayout(String name,
                                                    int context)
                                             throws Pack200Exception

      Throws:
        `Pack200Exception`

    - #### getAttributeLayout

          public AttributeLayout getAttributeLayout(int index,
                                                    int context)
                                             throws Pack200Exception

      Throws:
        `Pack200Exception`

    - #### checkMap

          public void checkMap()
                        throws Pack200Exception

      The map should not contain the same layout and name combination more than once for each context.
      Throws:
        `Pack200Exception` - Thrown when the name layout/name combination exists twice for a context.

    - #### getAttributeBands

          public NewAttributeBands getAttributeBands(AttributeLayout layout)

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