public class Manifest.ExistingAttribute extends Manifest.Attribute implements java.lang.Iterable<java.lang.String>
| Modifier and Type | Field and Description |
|---|---|
private java.util.jar.Attributes |
attributes |
name| Constructor and Description |
|---|
ExistingAttribute(java.util.jar.Attributes attributes,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(java.lang.String value)
Add a new value to this attribute - making it multivalued.
|
java.lang.String |
getKey()
Get the attribute's Key - its name in lower case.
|
java.lang.String |
getValue()
Get the Attribute's value.
|
java.util.Iterator<java.lang.String> |
iterator() |
void |
setName(java.lang.String name)
Set the Attribute's name; required
|
void |
setValue(java.lang.String value)
Set the Attribute's value; required
|
(package private) void |
write(java.io.Writer writer)
Writes the attribute out to a writer.
|
equals, hashCodegetNamepublic ExistingAttribute(java.util.jar.Attributes attributes,
java.lang.String name)
public java.util.Iterator<java.lang.String> iterator()
iterator in interface java.lang.Iterable<java.lang.String>iterator in class Manifest.Attributepublic void setName(java.lang.String name)
Manifest.AttributesetName in class Manifest.Attributename - the attribute's namepublic java.lang.String getKey()
Manifest.AttributegetKey in class Manifest.Attributepublic void setValue(java.lang.String value)
Manifest.AttributesetValue in class Manifest.Attributevalue - the attribute's valuepublic java.lang.String getValue()
Manifest.AttributegetValue in class Manifest.Attributepublic void addValue(java.lang.String value)
Manifest.AttributeaddValue in class Manifest.Attributevalue - the attribute's additional valuevoid write(java.io.Writer writer)
throws java.io.IOException
Manifest.Attributewrite in class Manifest.Attributewriter - the Writer to which the attribute is writtenjava.io.IOException - if the attribute value cannot be written