public class XMLSerializer extends Object
Modifier and Type | Class and Description |
---|---|
class |
XMLSerializer.CharacterValidatingContentHandler
This class wraps the standard content handler
|
Constructor and Description |
---|
XMLSerializer() |
XMLSerializer(boolean isFormattedOutput) |
XMLSerializer(OutputStream aOutputStream) |
XMLSerializer(OutputStream aOutputStream,
boolean isFormattedOutput) |
XMLSerializer(Writer aWriter) |
XMLSerializer(Writer aWriter,
boolean isFormattedOutput) |
Modifier and Type | Method and Description |
---|---|
void |
dom2sax(Node node,
ContentHandler handler) |
ContentHandler |
getContentHandler() |
void |
serialize(Node node) |
void |
setIndent(boolean yes) |
void |
setOutputProperty(String name,
String value) |
void |
setOutputStream(OutputStream aOutputStream) |
void |
setWriter(Writer aWriter) |
public XMLSerializer()
public XMLSerializer(boolean isFormattedOutput)
public XMLSerializer(OutputStream aOutputStream)
public XMLSerializer(OutputStream aOutputStream, boolean isFormattedOutput)
public XMLSerializer(Writer aWriter)
public XMLSerializer(Writer aWriter, boolean isFormattedOutput)
public void setIndent(boolean yes)
public void setOutputStream(OutputStream aOutputStream)
public void setWriter(Writer aWriter)
public ContentHandler getContentHandler()
public void serialize(Node node)
public void dom2sax(Node node, ContentHandler handler)
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.