org.apache.xml.serializer
Interface DOMSerializer
- All Known Subinterfaces:
- DOMSerializer, SerializationHandler
- public interface DOMSerializer
Interface for a DOM serializer implementation.
The DOM serializer is a facet of a serializer. A serializer may or may
not support a DOM serializer.
Example:
Document doc;
Serializer ser;
OutputStream os;
ser.setOutputStream( os );
ser.asDOMSerializer( doc );
Method Summary |
void |
serialize(Node node)
Serializes the DOM node. |
serialize
public void serialize(Node node)
throws java.io.IOException
- Serializes the DOM node. Throws an exception only if an I/O
exception occured while serializing.
- Parameters:
node
- the DOM node to serialize- Throws:
- java.io.IOException - if an I/O exception occured while serializing
Copyright © 2004 Apache XML Project. All Rights Reserved.