public class XMLWriter extends Object
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.
| Modifier and Type | Field and Description |
|---|---|
protected DocumentHandler |
handler |
| Constructor and Description |
|---|
XMLWriter() |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected DocumentHandler handler
public void setDocumentHandler(DocumentHandler handler)
public DocumentHandler getDocumentHandler()
public void element(String name)
public void start(String name)
public void end(String name)
public void characters(String str)
Copyright © 2016 Oracle Corporation. All Rights Reserved.