|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.taskdefs.Manifest.Section
public static class Manifest.Section
A manifest section - you can nest attribute elements into sections. A section consists of a set of attribute values, separated from other sections by a blank line.
Constructor Summary | |
---|---|
Manifest.Section()
|
Method Summary | |
---|---|
java.lang.String |
addAttributeAndCheck(Manifest.Attribute attribute)
Add an attribute to the section |
void |
addConfiguredAttribute(Manifest.Attribute attribute)
Add an attribute to the section. |
java.lang.Object |
clone()
Clone this section |
boolean |
equals(java.lang.Object rhs)
|
Manifest.Attribute |
getAttribute(java.lang.String attributeName)
Get a attribute of the section |
java.util.Enumeration |
getAttributeKeys()
Get the attribute keys. |
java.lang.String |
getAttributeValue(java.lang.String attributeName)
Get the value of the attribute with the name given. |
java.lang.String |
getName()
Get the Section's name. |
java.util.Enumeration |
getWarnings()
Get the warnings for this section. |
int |
hashCode()
|
void |
merge(Manifest.Section section)
Merge in another section |
java.lang.String |
read(java.io.BufferedReader reader)
Read a section through a reader. |
void |
removeAttribute(java.lang.String attributeName)
Remove the given attribute from the section |
void |
setName(java.lang.String name)
The name of the section; optional -default is the main section. |
void |
write(java.io.PrintWriter writer)
Write the section out to a print writer. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Manifest.Section()
Method Detail |
---|
public void setName(java.lang.String name)
name
- the section's namepublic java.lang.String getName()
public java.lang.String read(java.io.BufferedReader reader) throws ManifestException, java.io.IOException
reader
- the reader from which the section is read
ManifestException
- if the section is not valid according
to the JAR spec
java.io.IOException
- if the section cannot be read from the reader.public void merge(Manifest.Section section) throws ManifestException
section
- the section to be merged with this one.
ManifestException
- if the sections cannot be merged.public void write(java.io.PrintWriter writer) throws java.io.IOException
writer
- the Writer to which the section is written
java.io.IOException
- if the section cannot be writtenpublic Manifest.Attribute getAttribute(java.lang.String attributeName)
attributeName
- the name of the attribute
public java.util.Enumeration getAttributeKeys()
public java.lang.String getAttributeValue(java.lang.String attributeName)
attributeName
- the name of the attribute to be returned.
public void removeAttribute(java.lang.String attributeName)
attributeName
- the name of the attribute to be removed.public void addConfiguredAttribute(Manifest.Attribute attribute) throws ManifestException
attribute
- the attribute to be added to the section
ManifestException
- if the attribute is not valid.public java.lang.String addAttributeAndCheck(Manifest.Attribute attribute) throws ManifestException
attribute
- the attribute to be added.
ManifestException
- if the attribute already
exists in this section.public java.lang.Object clone()
clone
in class java.lang.Object
public java.util.Enumeration getWarnings()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object rhs)
equals
in class java.lang.Object
rhs
- the object to check for equality.
Object.equals(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |