|
CubeTwister 2.0alpha142 2012-02-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.xml.JavaxDOMOutput
public class JavaxDOMOutput
DOMOutput.
| Constructor Summary | |
|---|---|
JavaxDOMOutput(DOMFactory factory)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addComment(java.lang.String comment)
Adds a comment to the current element of the DOM Document. |
void |
addElement(java.lang.String tagName)
Puts a new element into the DOM Document. |
void |
addText(java.lang.String text)
Adds a text to current element of the DOM Document. |
void |
closeElement()
Closes the current element of the DOM Document. |
void |
save(java.io.OutputStream out)
Writes the contents of the DOMOutput into the specified output stream. |
void |
save(java.io.Writer out)
Writes the contents of the DOMOutput into the specified output stream. |
void |
setAttribute(java.lang.String name,
boolean value)
Adds an attribute to current element of the DOM Document. |
void |
setAttribute(java.lang.String name,
double value)
Adds an attribute to current element of the DOM Document. |
void |
setAttribute(java.lang.String name,
float value)
Adds an attribute to current element of the DOM Document. |
void |
setAttribute(java.lang.String name,
int value)
Adds an attribute to current element of the DOM Document. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Adds an attribute to current element of the DOM Document. |
void |
writeObject(java.lang.Object o)
Writes an object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaxDOMOutput(DOMFactory factory)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void save(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
public void save(java.io.Writer out)
throws java.io.IOException
java.io.IOExceptionpublic void addElement(java.lang.String tagName)
addElement in interface DOMOutputpublic void closeElement()
closeElement in interface DOMOutputjava.lang.IllegalArgumentException - if the provided tagName does
not match the tag name of the element.public void addComment(java.lang.String comment)
addComment in interface DOMOutputpublic void addText(java.lang.String text)
addText in interface DOMOutput
public void setAttribute(java.lang.String name,
java.lang.String value)
setAttribute in interface DOMOutput
public void setAttribute(java.lang.String name,
int value)
setAttribute in interface DOMOutput
public void setAttribute(java.lang.String name,
boolean value)
setAttribute in interface DOMOutput
public void setAttribute(java.lang.String name,
float value)
setAttribute in interface DOMOutput
public void setAttribute(java.lang.String name,
double value)
setAttribute in interface DOMOutputpublic void writeObject(java.lang.Object o)
DOMOutput
writeObject in interface DOMOutput
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||