|
||||||||||
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(OutputStream output)
Construct an object to write tags. |
Method Summary | |
---|---|
void |
addAttribute(String name,
String value)
Add an attribute to be written with the next tag. |
void |
addCDATA(String text)
Add CDATA to the output stream. |
void |
addProperty(String name,
double d)
Add a property as a double. |
void |
addProperty(String name,
double[] array,
int len)
Write an array as a property. |
void |
addProperty(String name,
int i)
Add a property as an integer. |
void |
addProperty(String name,
int[] array,
int len)
Write an array as a property. |
void |
addProperty(String name,
String str)
Add a property as a string. |
void |
addText(String text)
Add text. |
void |
beginDocument()
Called to begin the document. |
void |
beginTag(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(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(OutputStream output)
output
- THe output stream.Method Detail |
---|
public void addAttribute(String name, String value)
name
- The name of the attribute.value
- The value of the attribute.public void addCDATA(String text)
text
- The text to add.public void addProperty(String name, double d)
name
- The name of the enclosing tags.d
- The value to store.public void addProperty(String name, int i)
name
- The name of the enclosing tags.i
- The value to store.public void addProperty(String name, String str)
name
- The name of the enclosing tags.str
- The value to store.public void addProperty(String name, double[] array, int len)
name
- The name of the property.array
- The array to write.len
- The length of the array to write.public void addProperty(String name, int[] array, int len)
name
- The name of the property.array
- The array to write.len
- The length of the array to write.public void addText(String text)
text
- The text to add.public void beginDocument()
public void beginTag(String name)
name
- The tag to begin.public void close()
public void endDocument()
public void endTag()
public void endTag(String name)
name
- The tag to be ending.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |