public class XMLWriter extends Object
| Constructor and Description |
|---|
XMLWriter(File f) |
XMLWriter(OutputStream s) |
XMLWriter(StreamResult output) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAttributes() |
void |
endElement(String key) |
void |
setAttribute(String name,
String value) |
void |
startElement(String element) |
void |
write(String text) |
void |
write(Writable w) |
void |
writeProperty(String key,
int value) |
void |
writeProperty(String key,
String value) |
public XMLWriter(OutputStream s) throws TransformerConfigurationException
public XMLWriter(File f) throws TransformerConfigurationException
public XMLWriter(StreamResult output) throws TransformerConfigurationException
public void write(Writable w) throws SAXException
SAXExceptionpublic void startElement(String element) throws SAXException
SAXExceptionpublic void writeProperty(String key, String value) throws SAXException
SAXExceptionpublic void endElement(String key) throws SAXException
SAXExceptionpublic void write(String text) throws SAXException
SAXExceptionpublic void clearAttributes()
public void writeProperty(String key, int value) throws SAXException
SAXExceptionCopyright © 2014. All Rights Reserved.