com.izforge.izpack.adaptator.impl
Class XMLWriter

java.lang.Object
  extended by com.izforge.izpack.adaptator.impl.XMLWriter
All Implemented Interfaces:
IXMLWriter

public class XMLWriter
extends java.lang.Object
implements IXMLWriter

Author:
Anthonin Bonnefoy, David Duponchel

Field Summary
private  java.io.OutputStream outputStream
          OutputStream of the xml
private  java.lang.String systemId
          Url of the output
 
Constructor Summary
XMLWriter()
          Default constructor
XMLWriter(java.io.OutputStream outputStream)
          Constructor with parameter
 
Method Summary
 void setOutput(java.io.OutputStream outputStream)
          Set the outputStream of the writer
 void setOutput(java.lang.String systemId)
          Set the output to a URL
 void write(IXMLElement element)
          Write the xml in the writer output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputStream

private java.io.OutputStream outputStream
OutputStream of the xml


systemId

private java.lang.String systemId
Url of the output

Constructor Detail

XMLWriter

public XMLWriter()
Default constructor


XMLWriter

public XMLWriter(java.io.OutputStream outputStream)
Constructor with parameter

Parameters:
outputStream - outputStream to use
Method Detail

write

public void write(IXMLElement element)
Description copied from interface: IXMLWriter
Write the xml in the writer output

Specified by:
write in interface IXMLWriter
Parameters:
element - Xml to write

setOutput

public void setOutput(java.io.OutputStream outputStream)
Description copied from interface: IXMLWriter
Set the outputStream of the writer

Specified by:
setOutput in interface IXMLWriter
Parameters:
outputStream - The outputStream

setOutput

public void setOutput(java.lang.String systemId)
Description copied from interface: IXMLWriter
Set the output to a URL

Specified by:
setOutput in interface IXMLWriter
Parameters:
systemId - Url of the output