public class XMLWriter extends Object
created April 18, 2004
| Constructor and Description |
|---|
XMLWriter()
Constructor for the XMLWriter object
|
XMLWriter(OutputStream outStream)
Constructor for the XMLWriter object
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendNodeChildren(Node node)
Append node to document.
|
void |
cdata(String str)
Description of the Method
|
CDATASection |
createCDATASection(String data)
Convert data into CDATA.
|
Element |
createElement(String tagName)
Create element with name of tagName.
|
void |
element(String name)
Convenience method.
|
void |
endDocument()
Finalize current Document, writing it out.
|
void |
endElement(String name)
Generate end tag.
|
void |
endElementRecursive(String name)
Generate end tags for any open tags.
|
Node |
findObjectNode(String schemaName,
String objectName)
Locate the Schema and the Object in the current DOM.
|
Document |
getDocument()
Get the DOM Document written so far.
|
void |
pushAttribute(String name,
String value)
Add an attribute to the queue.
|
void |
setDocType(String sPublic,
String sSystem)
Sets the docType attribute of the XMLWriter object
|
void |
setEncoding(String encoding)
Set the encoding attribute of the XMLWriter object
|
void |
setIndent(boolean indent)
Set the indent attribute of the XMLWriter object
|
void |
setMethod(String method)
Set the method attribute of the XMLWriter object
|
void |
startDocument()
Start new Document.
|
void |
startElement(String name)
Generate start tag.
|
public XMLWriter(OutputStream outStream) throws IOException
outStream - Description of the ParameterIOException - Description of the Exceptionpublic XMLWriter()
throws IOException
IOException - Description of the Exceptionpublic void setMethod(String method)
method - The new method valuepublic void setEncoding(String encoding)
encoding - The new encoding valuepublic void setIndent(boolean indent)
indent - The new indent valuepublic void setDocType(String sPublic, String sSystem)
sPublic - The new docType valuesSystem - The new docType valuepublic void startDocument()
throws SAXException
SAXException - Description of the Exceptionpublic void endDocument()
throws SAXException
SAXException - Description of the Exceptionpublic void pushAttribute(String name, String value) throws SAXException
Should be called before calling the respective startElement()
.name - Description of the Parametervalue - Description of the ParameterSAXException - Description of the Exceptionpublic void startElement(String name) throws SAXException
name - Description of the ParameterSAXException - Description of the Exceptionpublic void endElement(String name) throws SAXException
name - Description of the ParameterSAXException - Description of the Exceptionpublic void endElementRecursive(String name) throws SAXException
name - Description of the ParameterSAXException - Description of the Exceptionpublic void element(String name) throws SAXException
name - Description of the ParameterSAXException - Description of the Exceptionpublic void cdata(String str) throws SAXException
str - Description of the ParameterSAXException - Description of the Exceptionpublic Document getDocument()
public void appendNodeChildren(Node node) throws SAXException
node - node whose children to appendSAXException - Description of the Exceptionpublic Node findObjectNode(String schemaName, String objectName) throws SAXException
schemaName - Oracle Schema nameobjectName - Oracle Object nameSAXException - Description of the Exceptionpublic Element createElement(String tagName) throws DOMException
tagName - textDOMException - Description of the Exceptionpublic CDATASection createCDATASection(String data) throws DOMException
data - textDOMException - Description of the ExceptionCopyright © 2019. All rights reserved.