com.sun.msv.writer
Class XMLWriter

java.lang.Object
  extended by com.sun.msv.writer.XMLWriter

public class XMLWriter
extends Object

Helper class that wraps DocumentHandler and provides utility methods.

Note that this class uses DocumentHandler, not ContentHandler. This generally allows the caller better control.

This class throws SAXRuntimeException, instead of SAXException.


Constructor Summary
XMLWriter()
           
 
Method Summary
 void characters(String str)
           
 void element(String name)
           
 void element(String name, String[] attributes)
           
 void end(String name)
           
 DocumentHandler getDocumentHandler()
           
 void setDocumentHandler(DocumentHandler handler)
          this DocumentHandler will receive XML.
 void start(String name)
           
 void start(String name, String[] attributes)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLWriter

public XMLWriter()
Method Detail

setDocumentHandler

public void setDocumentHandler(DocumentHandler handler)
this DocumentHandler will receive XML.


getDocumentHandler

public DocumentHandler getDocumentHandler()

element

public void element(String name)

element

public void element(String name,
                    String[] attributes)

start

public void start(String name)

start

public void start(String name,
                  String[] attributes)

end

public void end(String name)

characters

public void characters(String str)