Class AttributeLayoutMap
- java.lang.Object
-
- org.apache.commons.compress.harmony.unpack200.AttributeLayoutMap
-
public class AttributeLayoutMap extends java.lang.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 Description AttributeLayoutMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(java.lang.String name, int context)
-
-
-
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(java.lang.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)
-
-