Top Description Fields Constructors Methods
com.sun.msv.writer

public Class XMLWriter

extends Object
Class Inheritance
Annotations
@SuppressWarnings:deprecation
Imports
org.xml.sax.DocumentHandler, .SAXException, org.xml.sax.helpers.AttributeListImpl

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.

Field Summary

Modifier and TypeField and Description
protected DocumentHandler
handler

Deprecated as a consequence of DocumentHandler being deprecated.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
element(String name, String[] attributes)

public void
end(String name)

public DocumentHandler
getDocumentHandler()

Deprecated as a consequence of DocumentHandler being deprecated.
public void
setDocumentHandler(DocumentHandler handler)

Deprecated as a consequence of DocumentHandler being deprecated.
this DocumentHandler will receive XML.
public void
start(String name)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

handlerback to summary
protected DocumentHandler handler

Deprecated

as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.

Constructor Detail

XMLWriterback to summary
public XMLWriter()

Method Detail

charactersback to summary
public void characters(String str)
elementback to summary
public void element(String name)
elementback to summary
public void element(String name, String[] attributes)
endback to summary
public void end(String name)
getDocumentHandlerback to summary
public DocumentHandler getDocumentHandler()

Deprecated

as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.

setDocumentHandlerback to summary
public void setDocumentHandler(DocumentHandler handler)

Deprecated

as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.

this DocumentHandler will receive XML.

startback to summary
public void start(String name)
startback to summary
public void start(String name, String[] attributes)