org.encog.parse.tags.write
Constructor and Description |
---|
WriteTags(OutputStream output)
Construct an object to write tags.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public WriteTags(OutputStream output)
output
- THe output stream.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.Copyright © 2014. All Rights Reserved.