|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.taskdefs.Manifest.Attribute
Class to hold manifest attributes
Constructor Summary | |
Manifest.Attribute()
Construct an empty attribute |
|
Manifest.Attribute(java.lang.String line)
Construct an attribute by parsing a line from the Manifest |
|
Manifest.Attribute(java.lang.String name,
java.lang.String value)
Construct a manifest by specifying its name and value |
Method Summary | |
void |
addContinuation(java.lang.String line)
Add a continuation line from the Manifest file When lines are too long in a manifest, they are continued on the next line by starting with a space. |
boolean |
equals(java.lang.Object rhs)
|
java.lang.String |
getName()
Get the Attribute's name |
java.lang.String |
getValue()
Get the Attribute's value |
void |
parse(java.lang.String line)
Parse a line into name and value pairs |
void |
setName(java.lang.String name)
Set the Attribute's name |
void |
setValue(java.lang.String value)
Set the Attribute's value |
void |
write(java.io.PrintWriter writer)
Write the attribute out to a print writer. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Manifest.Attribute()
public Manifest.Attribute(java.lang.String line) throws ManifestException
line
- the line containing the attribute name and valueManifestException
- if the line is not validpublic Manifest.Attribute(java.lang.String name, java.lang.String value)
name
- the attribute's namevalue
- the Attribute's valueMethod Detail |
public boolean equals(java.lang.Object rhs)
equals
in class java.lang.Object
public void parse(java.lang.String line) throws ManifestException
line
- the line to be parsedManifestException
- if the line does not contain a colon
separating the name and valuepublic void setName(java.lang.String name)
name
- the attribute's namepublic java.lang.String getName()
public void setValue(java.lang.String value)
value
- the attribute's valuepublic java.lang.String getValue()
public void addContinuation(java.lang.String line)
public void write(java.io.PrintWriter writer) throws java.io.IOException
writer
- the Writer to which the attribute is writtenjava.io.IOException
- if the attribte value cannot be written
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |