|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.parse.tags.write.WriteTags
public class WriteTags
Class used to write out tags, such as XML or HTML.
| Constructor Summary | |
|---|---|
WriteTags(java.io.OutputStream output)
Construct an object to write tags. |
|
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String name,
java.lang.String value)
Add an attribute to be written with the next tag. |
void |
addCDATA(java.lang.String text)
Add CDATA to the output stream. |
void |
addProperty(java.lang.String name,
double d)
Add a property as a double. |
void |
addProperty(java.lang.String name,
int i)
Add a property as an integer. |
void |
addProperty(java.lang.String name,
java.lang.String str)
Add a property as a string. |
void |
addText(java.lang.String text)
Add text. |
void |
beginDocument()
Called to begin the document. |
void |
beginTag(java.lang.String name)
Begin a tag with the specified name. |
void |
close()
Close this object. |
void |
endDocument()
End the document. |
void |
endTag()
End the current tag. |
void |
endTag(java.lang.String name)
End a tag, require that we are ending the specified tag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WriteTags(java.io.OutputStream output)
output - THe output stream.| Method Detail |
|---|
public void addAttribute(java.lang.String name,
java.lang.String value)
name - The name of the attribute.value - The value of the attribute.public void addCDATA(java.lang.String text)
text - The text to add.
public void addProperty(java.lang.String name,
double d)
name - The name of the enclosing tags.d - The value to store.
public void addProperty(java.lang.String name,
int i)
name - The name of the enclosing tags.i - The value to store.
public void addProperty(java.lang.String name,
java.lang.String str)
name - The name of the enclosing tags.str - The value to store.public void addText(java.lang.String text)
text - The text to add.public void beginDocument()
public void beginTag(java.lang.String name)
name - The tag to begin.public void close()
public void endDocument()
public void endTag()
public void endTag(java.lang.String name)
name - The tag to be ending.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||