public class XMLWriter extends Object implements IXMLWriter
| Constructor and Description |
|---|
XMLWriter()
Default constructor
|
XMLWriter(OutputStream outputStream)
Constructor with parameter
|
| Modifier and Type | Method and Description |
|---|---|
void |
setOutput(OutputStream outputStream)
Set the outputStream of the writer
|
void |
setOutput(String systemId)
Set the output to a URL
|
void |
write(IXMLElement element)
Write the xml in the writer output
|
public XMLWriter()
public XMLWriter(OutputStream outputStream)
outputStream - outputStream to usepublic void write(IXMLElement element)
IXMLWriterwrite in interface IXMLWriterelement - Xml to writepublic void setOutput(OutputStream outputStream)
IXMLWritersetOutput in interface IXMLWriteroutputStream - The outputStreampublic void setOutput(String systemId)
IXMLWritersetOutput in interface IXMLWritersystemId - Url of the outputCopyright © 2001–2025. All rights reserved.