gnu.xml.transform

Class StreamSerializer

Known Direct Subclasses:
DomLSSerializer

public class StreamSerializer
extends java.lang.Object

Serializes a DOM node to an output stream.

Field Summary

protected boolean
discardDefaultContent
protected String
encoding
protected String
eol
protected boolean
xmlDeclaration

Constructor Summary

StreamSerializer()
StreamSerializer(String encoding)
StreamSerializer(int mode, String encoding, String eol)

Method Summary

void
serialize(Node node, OutputStream out)

Field Details

discardDefaultContent

protected boolean discardDefaultContent


encoding

protected String encoding


eol

protected String eol


xmlDeclaration

protected boolean xmlDeclaration

Constructor Details

StreamSerializer

public StreamSerializer()


StreamSerializer

public StreamSerializer(String encoding)


StreamSerializer

public StreamSerializer(int mode,
                        String encoding,
                        String eol)

Method Details

serialize

public void serialize(Node node,
                      OutputStream out)
            throws IOException