com.sun.msv.writer
Class XMLWriter
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
handler
protected DocumentHandler handler
XMLWriter
public XMLWriter()
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)
Copyright © 2013 Oracle Corporation. All Rights Reserved.